From: dbs Date: Thu, 8 Nov 2007 20:39:18 +0000 (+0000) Subject: And let's not double-log messages. Sigh. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=76c2932a8ee0c4d62a064b80c48e43dcc03bb7e4;p=opensrf%2Fbjwebb.git And let's not double-log messages. Sigh. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1126 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perlmods/OpenSRF/Utils/Logger.pm b/src/perlmods/OpenSRF/Utils/Logger.pm index 10fa7da..f19890f 100644 --- a/src/perlmods/OpenSRF/Utils/Logger.pm +++ b/src/perlmods/OpenSRF/Utils/Logger.pm @@ -260,7 +260,6 @@ sub _write_file { sysopen( SINK, $file, O_NONBLOCK|O_WRONLY|O_APPEND|O_CREAT ) or die "Cannot sysopen $logfile: $!"; binmode(SINK, ':utf8'); - print SINK "[$year-$mon-$mday $hour:$min:$sec] $service $msg\n"; printf SINK "[%04d-%02d-%02d %02d:%02d:%02d] %s %s\n", $year, $mon, $mday, $hour, $min, $sec, $service, $msg; close( SINK ); }