From ceaa83b83edb069ecf1cca181ec461519f0cc020 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 26 Feb 2020 14:19:54 +0100 Subject: global-functions: merge $LogAnd{Error,Put} to $LogPrintExit ... ... and fix logging. Logging with severity from variable (:log $severity ...) is not possible, this is considered a syntax error. Also the 'workaround' with parsing code failed with missing message in log. The reliable code is a lot longer, so merge the two functions to save a lot of duplicate code. --- update-tunnelbroker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update-tunnelbroker') diff --git a/update-tunnelbroker b/update-tunnelbroker index 138fac7..bd36439 100644 --- a/update-tunnelbroker +++ b/update-tunnelbroker @@ -5,10 +5,10 @@ :global CertificateAvailable; :global ParseKeyValueStore; -:global LogAndError; +:global LogPrintExit; :if ([ / ip cloud get ddns-enabled ] != true) do={ - $LogAndError error "IP cloud DDNS is not enabled."; + $LogPrintExit error "IP cloud DDNS is not enabled." true; } # Get the current ip address from cloud -- cgit v1.2.3-54-g00ecf