]> git.donarmstrong.com Git - infobot.git/commitdiff
close log then statuspico logger.pl!
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 24 Sep 2000 16:20:40 +0000 (16:20 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 24 Sep 2000 16:20:40 +0000 (16:20 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@141 c11ca15a-4712-0410-83d8-924469b57eb5

src/logger.pl

index 11e2434ac6051aadb2e2d0be32270645d3f1e064..245275601b6e8cb579a31adc61395794a7e4f10c 100644 (file)
@@ -109,8 +109,8 @@ sub closeLog {
     return unless (&IsParam("logfile"));
     return unless (defined fileno LOG);
 
-    &status("Closed logfile ($file{log}).");
     close LOG;
+    &status("Closed logfile ($file{log}).");
 }
 
 #####
@@ -192,9 +192,9 @@ sub status {
        $logrepeat++;
 
        if ($logrepeat >= 3) {
+           $logrepeat = 0;
            &status("LOG: repeat throttle.");
            sleep 1;
-           $logrepeat = 0;
        }
     }
     $logold = $input;