slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[livejournal] r15114: A little bugfix: remove '\n' from end of...

Committer: mchernyshev
A little bugfix: remove '\n' from end of line.

U   trunk/cgi-bin/LJ/Worker/ErrorLog.pm
Modified: trunk/cgi-bin/LJ/Worker/ErrorLog.pm
===================================================================
--- trunk/cgi-bin/LJ/Worker/ErrorLog.pm	2009-04-08 07:52:39 UTC (rev 15113)
+++ trunk/cgi-bin/LJ/Worker/ErrorLog.pm	2009-04-08 08:58:49 UTC (rev 15114)
@@ -62,6 +62,7 @@
     my $self = shift;
     my $now = time();
     my $ltime = localtime($now);
+    chomp($_[-1]);  # Remove last '\n'.
     foreach my $h ( values %{$self->{handles}} ) {
         print { $h } $ltime, ': ', join($,,@_);
     }

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments