aboutsummaryrefslogtreecommitdiffstats
path: root/mode-button-scheduler
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:23:33 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:23:33 +0200
commitb17ca4bb63022b952a939990bcbde14a8bbb6acd (patch)
tree62a64709c62d796b638bfcece8c312e4853f9b80 /mode-button-scheduler
parent93e72b5d07bdfe21949f26e6c8c742f8db443e6d (diff)
downloadrouteros-scripts-b17ca4bb63022b952a939990bcbde14a8bbb6acd.tar.gz
routeros-scripts-b17ca4bb63022b952a939990bcbde14a8bbb6acd.tar.zst
mode-button-scheduler: use $LogPrintExit
Diffstat (limited to 'mode-button-scheduler')
-rw-r--r--mode-button-scheduler6
1 files changed, 4 insertions, 2 deletions
diff --git a/mode-button-scheduler b/mode-button-scheduler
index 03f673b..632d6e3 100644
--- a/mode-button-scheduler
+++ b/mode-button-scheduler
@@ -7,6 +7,8 @@
:global ModeButton;
+:global LogPrintExit;
+
:local Count ($ModeButton->"count");
:local Code ($ModeButton->[ :tostr $Count ]);
@@ -14,7 +16,7 @@
/ system scheduler remove mode-button-scheduler;
:if ([ :len $Code ] > 0) do={
- :log info ("Acting on " . $Count . " mode-button presses: " . $Code);
+ $LogPrintExit info ("Acting on " . $Count . " mode-button presses: " . $Code) false;
:if ([ / system routerboard settings get silent-boot ] = false) do={
:for I from=1 to=$Count do={
@@ -28,5 +30,5 @@
:local Parsed [ :parse $Code ];
$Parsed;
} else={
- :log info ("No action defined for " . $Count . " mode-button presses.");
+ $LogPrintExit info ("No action defined for " . $Count . " mode-button presses.") false;
}