From 9c3ce55ee4767b9708a226b3b51c5ad7e1c390c8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 3 Apr 2020 16:48:22 +0200 Subject: global-functions: $MailServerIsUp: use $LogPrintExit --- global-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'global-functions') 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 ]; -- cgit v1.2.3-54-g00ecf