aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-04-28 11:01:57 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-04-28 11:05:25 +0200
commit2b647bef80b014e0d3d751506fbf6bfc54871293 (patch)
treed62f9105437356c1814feba115aadffb3bffe409 /global-functions
parent0479f59aa43bb706abed42c233cde000c7f86ffc (diff)
global-functions: $LogPrintExit2: handle empty name
(cherry picked from commit f417bcbcd4ab7458f1d0b4265ccda2854ba96b4f)
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index f212759..038f149 100644
--- a/global-functions
+++ b/global-functions
@@ -485,7 +485,7 @@
:return ("\1B[" . $Color->$1 . "m" . $1 . "\1B[0m");
}
- :local Log ($Name . ": " . $Message);
+ :local Log ([ $EitherOr $Name "<unknown>" ] . ": " . $Message);
:if ($Severity ~ ("^(debug|error|info)\$")) do={
:if ($Severity = "debug") do={ :log debug $Log; }
:if ($Severity = "error") do={ :log error $Log; }