aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions7
1 files changed, 4 insertions, 3 deletions
diff --git a/global-functions b/global-functions
index 335df62..0e3b5f1 100644
--- a/global-functions
+++ b/global-functions
@@ -492,8 +492,9 @@
# log and error with same text
:set LogAndError do={
- :local Message [ :tostr $1 ];
+ :local Severity [ :tostr $1 ];
+ :local Message [ :tostr $2 ];
- :log warn $Message;
- :error $Message;
+ [ :parse (":log " . $Severity . " \$Message") ];
+ :error ($Severity . ": " . $Message);
}