aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk.local
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-22 15:14:10 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-24 21:51:54 +0100
commitf46db918453dcb8878b9a0de6e122fb0ea2224d9 (patch)
tree31544a450651d0705ecdea0c3d35e650ef784d67 /daily-psk.local
parentb0e52aa2d1baa78fc9d025c0671fea8babba0ec2 (diff)
global: give script or function name in log messages
Diffstat (limited to 'daily-psk.local')
-rw-r--r--daily-psk.local7
1 files changed, 4 insertions, 3 deletions
diff --git a/daily-psk.local b/daily-psk.local
index e7f908f..6186ddc 100644
--- a/daily-psk.local
+++ b/daily-psk.local
@@ -9,13 +9,14 @@
#
# !! Do not edit this file, it is generated from template!
+:local 0 "daily-psk.local";
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:global DailyPskMatchComment;
:global Identity;
-:global LogPrintExit;
+:global LogPrintExit2;
:global SendNotification;
:global SymbolForNotification;
:global UrlEncode;
@@ -65,13 +66,13 @@ $WaitFullyConnected;
:local Skip 0;
:if ($NewPsk != $OldPsk) do={
- $LogPrintExit info ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")") false;
+ $LogPrintExit2 info $0 ("Updating daily PSK for " . $Ssid . " to " . $NewPsk . " (was " . $OldPsk . ")") false;
/ interface wireless access-list set $AccList private-pre-shared-key=$NewPsk;
:if ([ :len [ / interface wireless find where name=$IntName disabled=no ] ] = 1) do={
:foreach SeenSsid in=$Seen do={
:if ($SeenSsid = $Ssid) do={
- $LogPrintExit debug ("Already sent a mail for SSID " . $Ssid . ", skipping.") false;
+ $LogPrintExit2 debug $0 ("Already sent a mail for SSID " . $Ssid . ", skipping.") false;
:set Skip 1;
}
}