prepend date to our log lines rsync
authorMatthias Förste foerste@schlittermann.de
Wed, 31 Aug 2011 11:01:40 +0200
branchrsync
changeset 19 4e50f848f55b
parent 18 46c708d81b2a
child 20 eb8cfb9bb6a1
prepend date to our log lines
bin/rpi
--- a/bin/rpi	Wed Aug 31 11:01:16 2011 +0200
+++ b/bin/rpi	Wed Aug 31 11:01:40 2011 +0200
@@ -273,7 +273,7 @@
 
     $line .= "\n";
     print "[@cmd]: $line";
-    print $raw $line if defined $raw;
+    print $raw "[" . gmtime() . " +0000] $line" if defined $raw;
 
     # try to determine uploader
     if ($line =~ /^processing changesfile '([^']+)'$/) {
@@ -322,7 +322,7 @@
     $m->{$f} = '' unless defined $m->{$f};
     $m->{$f} .= "[uncaught line]: $line\n";
 
-    print $uncaught $line if defined $uncaught;
+    print $uncaught "[" . gmtime() . " +0000] $line" if defined $uncaught;
 
   }