chiark / gitweb /
Send webstump CGI logs to "errs" too to capture all of the decisions
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 16:53:59 +0000 (17:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 16:53:59 +0000 (17:53 +0100)
webstump/scripts/webstump.pl

index 97b09ed..3da004b 100755 (executable)
@@ -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;