And let's not double-log messages. Sigh.
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Nov 2007 20:39:18 +0000 (20:39 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Nov 2007 20:39:18 +0000 (20:39 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1126 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Utils/Logger.pm

index 10fa7da..f19890f 100644 (file)
@@ -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 );
 }