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){
|
if ($fatal_warn && $level <= WARN){
|
||||||
log(INFO, "Program stopped due to warning");
|
#log(INFO, "Program stopped due to warning");
|
||||||
exit 125;
|
exit 125;
|
||||||
}
|
}
|
||||||
elsif ($fatal_error && $level <= ERROR) {
|
elsif ($fatal_error && $level <= ERROR) {
|
||||||
log(INFO, "Program stopped due to error");
|
#log(INFO, "Program stopped due to error");
|
||||||
exit 126;
|
exit 126;
|
||||||
}
|
}
|
||||||
elsif ($level <= FATAL) {
|
elsif ($level <= FATAL) {
|
||||||
log(INFO, "Program stopped due to fatal error");
|
#log(INFO, "Program stopped due to fatal error");
|
||||||
exit 127;
|
exit 127;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue