From 3db752bc979be5f7eaff4f64e96d5f854b83eff5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 27 Feb 2020 13:51:27 +0100 Subject: global-functions: $ScriptLock: use $LogPrintExit --- global-functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/global-functions b/global-functions index ed7363b..cdc7300 100644 --- a/global-functions +++ b/global-functions @@ -306,11 +306,12 @@ # lock script against multiple invocation :set ScriptLock do={ + :global LogPrintExit; + :local Script [ :tostr $1 ]; :if ([ / system script job print count-only where script=$Script ] > 1) do={ - :log debug ("Script " . $Script . " started more than once... Aborting."); - :error "Locked." + $LogPrintExit info ("Script " . $Script . " started more than once... Aborting.") true; } } -- cgit v1.2.3-54-g00ecf