From 2b647bef80b014e0d3d751506fbf6bfc54871293 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 28 Apr 2022 11:01:57 +0200 Subject: global-functions: $LogPrintExit2: handle empty name (cherry picked from commit f417bcbcd4ab7458f1d0b4265ccda2854ba96b4f) --- global-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" ] . ": " . $Message); :if ($Severity ~ ("^(debug|error|info)\$")) do={ :if ($Severity = "debug") do={ :log debug $Log; } :if ($Severity = "error") do={ :log error $Log; } -- cgit v1.2.3-54-g00ecf