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 97b09ed557d195f0cd4a71447e60ddae3c48a02d..3da004bc3842cf07dc112bb3e249b6e6b5a5a8ec 100755 (executable)
@@ -12,6 +12,9 @@ if( !($0 =~ /\/scripts\/webstump\.pl$/) ) {
 $webstump_home = $0;
 $webstump_home =~ s/\/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;
 
 $webstump_home =~ /(^.*$)/;
 $webstump_home = $1;