Przeglądaj źródła

fixed clearing the work log from debugging entries

root 1 rok temu
rodzic
commit
f7bb284144
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      scripts/garbage.pl

+ 1 - 1
scripts/garbage.pl

@@ -246,7 +246,7 @@ if ($debug_history) {
     my $clean_date = $now - $day_dur;
     my $clean_str = $dbh->quote($clean_date->ymd("-")." 00:00:00");
     db_log_info($dbh,"Clean debug worklog older that ".$clean_str);
-    do_sql($dbh,"DELETE FROM worklog WHERE level>$L_DEBUG AND `timestamp` < $clean_str" );
+    do_sql($dbh,"DELETE FROM worklog WHERE level>=$L_DEBUG AND `timestamp` < $clean_str" );
 }
 
 ##### remote syslog  ######