wirefuzz: improve logfile cleanup

pull/1851/head
Victor Julien 9 years ago
parent 3d0542405d
commit 7299388d05

@ -599,15 +599,14 @@ sub clean_logs {
#system("$rmcmd");
}
if ( unlink(<$logdir . unified*>) > 0 ) {
print "clean_logs: removed unified logs for next run \n";
}
else {
print "clean_logs: failed to delete unified logs\n:";
foreach my $file (glob "$logdir/unified2.* $logdir/*.log $logdir/*.json") {
#print $file . "\n";
if (unlink($file) <= 0) {
print "clean_logs: failed to delete log file $file\n";
}
}
print "******************Log Cleanup Complete**********************\n";
return;
return;
}
sub keep_logs {

Loading…
Cancel
Save