From 76c2932a8ee0c4d62a064b80c48e43dcc03bb7e4 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 8 Nov 2007 20:39:18 +0000 Subject: [PATCH] And let's not double-log messages. Sigh. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1126 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perlmods/OpenSRF/Utils/Logger.pm | 1 - 1 file changed, 1 deletion(-) 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 ); } -- 2.11.0