Enable debug logging to bypass log level
This commit is contained in:
parent
7bfa12b539
commit
9117c84653
@ -5,7 +5,7 @@ function logger(type, caller, message) {
|
|||||||
if ($temp_type > 6 || $temp_type < 1) {
|
if ($temp_type > 6 || $temp_type < 1) {
|
||||||
say "The log type requested does not exist. Please find the caller ($caller) and resolve this issue.";
|
say "The log type requested does not exist. Please find the caller ($caller) and resolve this issue.";
|
||||||
}
|
}
|
||||||
if ($temp_type >= $log_level) { $tmp_logger = $type; }
|
if ($temp_type >= $log_level || $logger) { $tmp_logger = $type; }
|
||||||
switch($tmp_logger) {
|
switch($tmp_logger) {
|
||||||
case 5:
|
case 5:
|
||||||
say "FATAL: ($caller) $message";
|
say "FATAL: ($caller) $message";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user