aboutsummaryrefslogtreecommitdiffstats
path: root/update-tunnelbroker
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-26 14:19:54 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-26 14:19:54 +0100
commitceaa83b83edb069ecf1cca181ec461519f0cc020 (patch)
tree1c48dd40fcdc3cd59a184a81acf8e6161e98d159 /update-tunnelbroker
parent6036edb506a7101d95eb293d0509b4ff178d7191 (diff)
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.
Diffstat (limited to 'update-tunnelbroker')
-rw-r--r--update-tunnelbroker4
1 files changed, 2 insertions, 2 deletions
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