Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
9f1e5dd6
Commit
9f1e5dd6
authored
Dec 01, 2005
by
Leigh B. Stoller
Browse files
Turn of debugging; make sure logfile is deleted at exit.
parent
fff1d16b
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/dumperrorlog.in
View file @
9f1e5dd6
...
...
@@ -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
($)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment