From b0d3e3d5f4775883554823ec26df36b00e4a5544 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 26 Jan 2023 21:04:59 +0100 Subject: global-functions: $LogPrintExit2: always print the message... ... even on error. Not sure why and when this broke. --- global-functions | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/global-functions b/global-functions index 58c025e..dfb76f7 100644 --- a/global-functions +++ b/global-functions @@ -531,11 +531,11 @@ } :if ($Severity != "debug" || $Debug = true) do={ - :if ($Exit = "true") do={ - :error ([ $PrintSeverity $Severity ] . ": " . $Message); - } else={ - :put ([ $PrintSeverity $Severity ] . ": " . $Message); - } + :put ([ $PrintSeverity $Severity ] . ": " . $Message); + } + + :if ($Exit = "true") do={ + :error ("Hard error to exit."); } } -- cgit v1.2.3-54-g00ecf