From 3127800496410a9f316e22c57485e83a6c2fe193 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 5 Mar 2020 08:26:05 +0100 Subject: daily-psk: use $LogPrintExit --- daily-psk.capsman | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'daily-psk.capsman') diff --git a/daily-psk.capsman b/daily-psk.capsman index 36dfc1a..59b867e 100644 --- a/daily-psk.capsman +++ b/daily-psk.capsman @@ -7,9 +7,10 @@ # # !! Do not edit this file, it is generated from template! -:global Identity; :global DailyPskMatchComment; +:global Identity; +:global LogPrintExit; :global SendNotification; :global UrlEncode; :global WaitForFile; @@ -56,13 +57,13 @@ :local Skip 0; :if ($NewPsk != $OldPsk) do={ - :log info ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")"); + $LogPrintExit info ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")") false; / caps-man access-list set $AccList private-passphrase=$NewPsk; :if ([ / caps-man interface print count-only where configuration=$Configuration ] > 0) do={ :foreach SeenSsid in=$Seen do={ :if ($SeenSsid = $Ssid) do={ - :log debug ("Already sent a mail for SSID " . $Ssid . ", skipping."); + $LogPrintExit debug ("Already sent a mail for SSID " . $Ssid . ", skipping.") false; :set Skip 1; } } -- cgit v1.2.3-54-g00ecf