Fix log function
This commit is contained in:
parent
ba75c5c8fd
commit
56af84d6cb
1 changed files with 3 additions and 3 deletions
|
|
@ -63,15 +63,15 @@ sub log
|
|||
}
|
||||
|
||||
if ($fatal_warn && $level <= WARN){
|
||||
log(INFO, "Program stopped due to warning");
|
||||
#log(INFO, "Program stopped due to warning");
|
||||
exit 125;
|
||||
}
|
||||
elsif ($fatal_error && $level <= ERROR) {
|
||||
log(INFO, "Program stopped due to error");
|
||||
#log(INFO, "Program stopped due to error");
|
||||
exit 126;
|
||||
}
|
||||
elsif ($level <= FATAL) {
|
||||
log(INFO, "Program stopped due to fatal error");
|
||||
#log(INFO, "Program stopped due to fatal error");
|
||||
exit 127;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue