From 8758a298ba730832838ef982fa8a2e07d3ca6f69 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Tue, 15 Dec 2015 16:06:14 +0100 Subject: [PATCH] Changed connection log to include the name of the probe that triggered. --- ChangeLog | 3 +++ common.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3262f78..f107380 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ vNEXT: Added support for RFC4366 SNI (Travis Burtrum) + Changed connection log to include the name of the probe that + triggered. + Changed configuration file format: 'probe' field is no longer required, 'name' field can now contain 'sni' or 'regex', with corresponding options (see diff --git a/common.c b/common.c index 218bd91..bff10be 100644 --- a/common.c +++ b/common.c @@ -457,7 +457,8 @@ void log_connection(struct connection *cnx) if (res == -1) return; sprintaddr(local, sizeof(local), &addr); - log_message(LOG_INFO, "connection from %s to %s forwarded from %s to %s\n", + log_message(LOG_INFO, "%s:connection from %s to %s forwarded from %s to %s\n", + cnx->proto->description, peer, service, local,