From c9061836af240b52828e6a3fa99a009ac85583c4 Mon Sep 17 00:00:00 2001 From: dormando Date: Tue, 30 Mar 2010 05:38:00 +0000 Subject: [PATCH] Date Mgd::log lines when being sent to STDOUT. Original patch/idea from Tomas Doran git-svn-id: http://code.sixapart.com/svn/mogilefs/trunk@1415 f67b2e87-0811-0410-a7e0-dd94e48410d6 --- lib/MogileFS/Server.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MogileFS/Server.pm b/lib/MogileFS/Server.pm index ea4e823..66a95cd 100644 --- a/lib/MogileFS/Server.pm +++ b/lib/MogileFS/Server.pm @@ -267,7 +267,7 @@ sub log { my $mask = shift; # format string $mask .= "\n" unless $mask =~ /\n$/; my $message = @_ ? sprintf($mask, @_) : $mask; - print $message; + print '[', scalar localtime(), '] ', $message; } else { # just pass the parameters to syslog Sys::Syslog::syslog(@_); -- 2.11.4.GIT