Change logger type check to use temp var
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
This commit is contained in:
parent
b3e1769ca9
commit
f0feb378af
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user