chiark / gitweb /
Error handling fixes including new log file
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Feb 2010 20:58:33 +0000 (20:58 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Feb 2010 20:58:33 +0000 (20:58 +0000)
.gitignore
crontab.part.INO
install-newsgroup
webstump/scripts/webstump.lib.pl

index f83203b..661170f 100644 (file)
@@ -10,6 +10,7 @@
 /webstump/bin/wrapper
 /webstump/config/*
 /webstump/queues/*/dir_*
+/webstump/log
 /xlog/log/*/event.log
 /xlog/log/*/event.log.[0-9]
 /xlog/log/*/event.log.[0-9].gz
index 71caf31..fd9d4d4 100644 (file)
@@ -4,4 +4,5 @@
 #
 #m h  d m dow
 50 7  * * 1,4  savelog live-%ABBREV%/xlog/log/%GROUP%/event.log
-50 7  12 * *   savelog live-%ABBREV%/errs
+51 7  12 * *   savelog live-%ABBREV%/errs
+52 7  12 * *   savelog live-%ABBREV%/webstump/log/webstump.log
index ff1513b..5ec1784 100755 (executable)
@@ -8,6 +8,7 @@ set -e
 mkdir -p stump/tmp/messages
 mkdir -p stump/data
 mkdir -p webstump/queues/$GROUP
+mkdir -p webstump/log
 mkdir -p xlog/log/$GROUP
 
 ngdir=webstump/config/newsgroups/$GROUP
index c76d25d..3baa41f 100644 (file)
@@ -187,7 +187,7 @@ sub init_webstump {
 
       open( FILE, $file ) or die $!;
       $addr = <FILE>;
-      defined $addr or die $!
+      defined $addr or die $!;
       chop $addr;
       close( FILE );