Change logger type check to use temp var

This commit is contained in:
themodernhakr 2025-03-11 15:39:21 -05:00
parent cf55f238ff
commit accd746389

View File

@ -1,10 +1,10 @@
@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 > 6 || $temp_type < 1) {
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; }
switch($tmp_logger) {
case 5: