summaryrefslogtreecommitdiff
path: root/sbin/iked/ikev2_msg.c
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-04-24 21:15:06 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-04-24 21:15:06 +0000
commit39864fde2ed8119415000b936b43704f1cb194e0 (patch)
tree238b645127f9142fe9f8737b620a763c4cc57afe /sbin/iked/ikev2_msg.c
parent92a561928c7193894ecd828d3459cfaa5072a53b (diff)
Log INFORMATIONAL messages with LOG_DEBUG. They are rarely useful for
debugging and fill up the logs. ok patrick@ kn@
Diffstat (limited to 'sbin/iked/ikev2_msg.c')
-rw-r--r--sbin/iked/ikev2_msg.c6
1 files changed, 4 insertions, 2 deletions
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 <tobias.heider@stusta.de>
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <syslog.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
@@ -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",