Commit 9f1e5dd6 authored by Leigh Stoller's avatar Leigh Stoller

Turn of debugging; make sure logfile is deleted at exit.

parent fff1d16b
......@@ -15,7 +15,7 @@ sub usage() {
exit(-1);
}
my $optlist = "d";
my $debug = 1;
my $debug = 0;
my $tempfile = "/var/tmp/testbed_dumperrorlog_tempfile";
#
......@@ -206,6 +206,9 @@ DBQueryFatal("delete from log ".
"where priority > $NOTICE and ".
" stamp < (UNIX_TIMESTAMP(now()) - (7 * 24 * 60 * 60))");
unlink("$logname")
if (-e $logname);
exit(0);
sub fatal($)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment