From 39864fde2ed8119415000b936b43704f1cb194e0 Mon Sep 17 00:00:00 2001 From: tobhe Date: Fri, 24 Apr 2020 21:15:06 +0000 Subject: Log INFORMATIONAL messages with LOG_DEBUG. They are rarely useful for debugging and fill up the logs. ok patrick@ kn@ --- sbin/iked/ikev2_msg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin/iked/ikev2_msg.c') diff --git a/sbin/iked/ikev2_msg.c b/sbin/iked/ikev2_msg.c index 3e651f3db7a..75b8272b49c 100644 --- a/sbin/iked/ikev2_msg.c +++ b/sbin/iked/ikev2_msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2_msg.c,v 1.65 2020/04/17 20:54:23 tobhe Exp $ */ +/* $OpenBSD: ikev2_msg.c,v 1.66 2020/04/24 21:15:05 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -28,6 +28,7 @@ #include #include +#include #include #include #include @@ -261,7 +262,8 @@ ikev2_msg_send(struct iked *env, struct iked_message *msg) exchange = hdr->ike_exchange; flags = hdr->ike_flags; - log_info("%ssend %s %s %u peer %s local %s, %ld bytes%s", + logit(exchange == IKEV2_EXCHANGE_INFORMATIONAL ? LOG_DEBUG : LOG_INFO, + "%ssend %s %s %u peer %s local %s, %ld bytes%s", SPI_IH(hdr), print_map(exchange, ikev2_exchange_map), (flags & IKEV2_FLAG_RESPONSE) ? "res" : "req", -- cgit v1.2.3