Add logger error for invalid type paramater

This commit is contained in:
themodernhakr 2025-03-11 15:32:46 -05:00
parent 68d4b8c25d
commit cf55f238ff

View File

@ -1,5 +1,8 @@
@lazy
function logger(type, caller, message) {
if ($type > 6 || $type < 1) {
say "The log type requested does not exist. Please find the caller ($caller) and resolve this issue.";
}
$tmp_logger = false;
$tmp_type = $type;
if ($temp_type >= $log_level) { $tmp_logger = $type; }