From: Steinar H. Gunderson Date: Sat, 7 Jul 2007 11:00:39 +0000 (+0200) Subject: Timestamp the UCI log. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=8e2fcde0c39c34b3f318169ce59e4a055354fcac;ds=sidebyside Timestamp the UCI log. --- diff --git a/remoteglot.pl b/remoteglot.pl index ed30712..7a68339 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -163,7 +163,7 @@ sub handle_uci { chomp $line; $line =~ tr/\r//d; - print UCILOG "<= $line\n"; + print UCILOG localtime() . " <= $line\n"; if ($line =~ /^info/) { my (@infos) = split / /, $line; shift @infos; @@ -840,7 +840,7 @@ sub can_reach { sub uciprint { my $msg = shift; print UCIWRITE "$msg\n"; - print UCILOG "=> $msg\n"; + print UCILOG localtime() . " => $msg\n"; } sub short_score {