From 7bf2f3d381f5e54ab54b18db719e52c69c05c32d Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 26 Oct 2010 14:12:15 +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/trunk@2049 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 8d0dc74..cfb7ba9 100644 --- a/src/perl/lib/OpenSRF/Transport.pm +++ b/src/perl/lib/OpenSRF/Transport.pm @@ -158,8 +158,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 { @@ -175,14 +174,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.43.2