From 8e2fcde0c39c34b3f318169ce59e4a055354fcac Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 7 Jul 2007 13:00:39 +0200 Subject: [PATCH] Timestamp the UCI log. --- remoteglot.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.2