From: Ian Jackson Date: Tue, 20 Apr 2010 16:53:59 +0000 (+0100) Subject: Send webstump CGI logs to "errs" too to capture all of the decisions X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=commitdiff_plain;h=ce2774536f74c9511d68c2de600dc042093a83fd Send webstump CGI logs to "errs" too to capture all of the decisions --- diff --git a/webstump/scripts/webstump.pl b/webstump/scripts/webstump.pl index 97b09ed..3da004b 100755 --- a/webstump/scripts/webstump.pl +++ b/webstump/scripts/webstump.pl @@ -12,6 +12,9 @@ if( !($0 =~ /\/scripts\/webstump\.pl$/) ) { $webstump_home = $0; $webstump_home =~ s/\/scripts\/webstump\.pl$//; +my $logfile= "$webstump_home/../errs"; +open STDERR, ">> $logfile" or die "$logfile $!"; + $webstump_home =~ /(^.*$)/; $webstump_home = $1;