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:04:34 +0200
commitf417bcbcd4ab7458f1d0b4265ccda2854ba96b4f (patch)
treec9405b31f0234b2a5bda2be56a04d4ee355914eb /global-functions
parente74bec7e5b62e54d10b1f3ba058868536b35fdc6 (diff)
global-functions: $LogPrintExit2: handle empty name
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 6cd6b85..0feeb1d 100644
--- a/global-functions
+++ b/global-functions
@@ -481,7 +481,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; }