diff options
-rw-r--r-- | global-functions | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/global-functions b/global-functions index 654642e..63c0e21 100644 --- a/global-functions +++ b/global-functions @@ -489,6 +489,11 @@ :local Exit [ :tostr $4 ]; :global PrintDebug; + :global PrintDebugOverride; + + :global EitherOr; + + :local Debug [ $EitherOr ($PrintDebugOverride->$Name) $PrintDebug ]; :local PrintSeverity do={ :global TerminalColorOutput; @@ -511,7 +516,7 @@ :set Severity "warning"; } - :if ($Severity != "debug" || $PrintDebug = true) do={ + :if ($Severity != "debug" || $Debug = true) do={ :if ($Exit = "true") do={ :error ([ $PrintSeverity $Severity ] . ": " . $Message); } else={ |