[Opensrf-commits] r1126 - trunk/src/perlmods/OpenSRF/Utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 8 15:55:11 EST 2007
Author: dbs
Date: 2007-11-08 15:39:18 -0500 (Thu, 08 Nov 2007)
New Revision: 1126
Modified:
trunk/src/perlmods/OpenSRF/Utils/Logger.pm
Log:
And let's not double-log messages. Sigh.
Modified: trunk/src/perlmods/OpenSRF/Utils/Logger.pm
===================================================================
--- trunk/src/perlmods/OpenSRF/Utils/Logger.pm 2007-11-08 20:36:16 UTC (rev 1125)
+++ trunk/src/perlmods/OpenSRF/Utils/Logger.pm 2007-11-08 20:39:18 UTC (rev 1126)
@@ -260,7 +260,6 @@
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 );
}
More information about the opensrf-commits
mailing list