aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 16:48:22 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 16:59:10 +0200
commit9c3ce55ee4767b9708a226b3b51c5ad7e1c390c8 (patch)
tree9de2def6a7c4fd7d678be19a00ef3f86d61c4e86 /global-functions
parent596fb5f83582b982c0ec336c8cb65e8b76665ba1 (diff)
global-functions: $MailServerIsUp: use $LogPrintExit
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 3dba487..42e5fcf 100644
--- a/global-functions
+++ b/global-functions
@@ -317,8 +317,10 @@
:local MailServer [ / tool e-mail get address ];
:local MailHost $MailServer;
+ :global LogPrintExit;
+
:if ([ / tool netwatch print count-only where comment=$MailServer ] = 0) do={
- :log warning ("Adding netwatch entry for mail server.");
+ $LogPrintExit warning ("Adding netwatch entry for mail server.") false;
:local MailHost $MailServer;
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
:set MailHost [ :resolve $MailServer ];