diff options
author | Christian Hesse <mail@eworm.de> | 2020-04-03 17:23:33 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-04-03 17:23:33 +0200 |
commit | b17ca4bb63022b952a939990bcbde14a8bbb6acd (patch) | |
tree | 62a64709c62d796b638bfcece8c312e4853f9b80 | |
parent | 93e72b5d07bdfe21949f26e6c8c742f8db443e6d (diff) |
mode-button-scheduler: use $LogPrintExit
-rw-r--r-- | mode-button-scheduler | 6 |
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; } |