From efa229679c3bca577bca80a489f5323a5c0195b4 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 26 Oct 2010 14:12:33 +0000 Subject: [PATCH] consistent w/ the C libs, only log server message processing duration at INFO. log server response processing duration at debug and w/ slighly different wording. let the processing duration log message act as the indication of a successfully handled message to reduce logging git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_6@2050 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perl/lib/OpenSRF/Transport.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/perl/lib/OpenSRF/Transport.pm b/src/perl/lib/OpenSRF/Transport.pm index 4288055..b143fe0 100644 --- a/src/perl/lib/OpenSRF/Transport.pm +++ b/src/perl/lib/OpenSRF/Transport.pm @@ -167,8 +167,7 @@ sub handler { try { if( ! $msg->handler( $app_session ) ) { return 0; } - - $logger->debug("Successfully handled message", DEBUG); + $logger->info(sprintf("Message processing duration: %.3f", (time() - $start_time))); } catch Error with { @@ -184,14 +183,11 @@ sub handler { } else { if( ! $msg->handler( $app_session ) ) { return 0; } - $logger->debug("Successfully handled message", DEBUG); + $logger->debug(sprintf("Response processing duration: %.3f", (time() - $start_time))); } - } - $logger->info(sprintf("Message processing duration: %.3fs", (time() - $start_time))); - return $app_session; } -- 2.11.0