changeset 897:49ce942443fa

Adjust severity of Close messages from ERR to INFO It seems a little excessive to treat the closing of a session as ERR and as a result such messages can overwhelm loggers. Suggested-by: Christian Balzer <chibi@gol.com> Signed-off-by: Simon Horman <horms@verge.net.au>
author Simon Horman <horms@verge.net.au>
date Tue, 20 Mar 2012 18:08:23 +0900
parents 42cf9cad300f
children 248a30ac3efd
files perdition/perdition.c
diffstat 1 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/perdition/perdition.c	Tue Feb 21 22:42:26 2012 +0900
+++ b/perdition/perdition.c	Tue Mar 20 18:08:23 2012 +0900
@@ -298,14 +298,14 @@
 {
 	struct quoted_str authorisation_id = quote_str(auth->authorisation_id);
 
-	VANESSA_LOGGER_ERR_UNSAFE("Closing NULL session:%s "
-				  "authorisation_id=%s%s%s "
-				  "authentication_id=\"%s\"",
-				  from_to_host_str,
-				  authorisation_id.quote,
-				  authorisation_id.str,
-				  authorisation_id.quote,
-				  str_null_safe(auth->authentication_id));
+	VANESSA_LOGGER_INFO_UNSAFE("Closing NULL session:%s "
+				   "authorisation_id=%s%s%s "
+				   "authentication_id=\"%s\"",
+				   from_to_host_str,
+				   authorisation_id.quote,
+				   authorisation_id.str,
+				   authorisation_id.quote,
+				   str_null_safe(auth->authentication_id));
 }
 
 static void perdition_log_close(const char *from_to_host_str,
@@ -313,16 +313,16 @@
 {
 	struct quoted_str authorisation_id = quote_str(auth->authorisation_id);
 
-	VANESSA_LOGGER_ERR_UNSAFE("Closing session:%s "
-				  "authorisation_id=%s%s%s "
-				  "authentication_id=\"%s\" "
-				  "received=%zu sent=%zu",
-				  from_to_host_str,
-				  authorisation_id.quote,
-				  authorisation_id.str,
-				  authorisation_id.quote,
-				  str_null_safe(auth->authentication_id),
-				  received, sent);
+	VANESSA_LOGGER_INFO_UNSAFE("Closing session:%s "
+				   "authorisation_id=%s%s%s "
+				   "authentication_id=\"%s\" "
+				   "received=%zu sent=%zu",
+				   from_to_host_str,
+				   authorisation_id.quote,
+				   authorisation_id.str,
+				   authorisation_id.quote,
+				   str_null_safe(auth->authentication_id),
+				   received, sent);
 }
 
 /**********************************************************************