aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-09-12 22:28:55 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-09-12 22:28:55 +0200
commit6ee72324080ea1fe716f3b7c696d66d6a9204743 (patch)
treee9b4b12eb740a4f2d7008d1a15963568f15e4581
parent5f341b177667f566eacf9fc2ebcd48c6d9586cfd (diff)
downloadrouteros-scripts-6ee72324080ea1fe716f3b7c696d66d6a9204743.tar.gz
routeros-scripts-6ee72324080ea1fe716f3b7c696d66d6a9204743.tar.xz
mode-button-scheduler: literally log action
-rw-r--r--mode-button-scheduler7
1 files changed, 4 insertions, 3 deletions
diff --git a/mode-button-scheduler b/mode-button-scheduler
index bf85826..85db78a 100644
--- a/mode-button-scheduler
+++ b/mode-button-scheduler
@@ -7,10 +7,11 @@
:global "mode-button";
:local count ($"mode-button"->"count");
-:local action [ :parse ($"mode-button"->[ :tostr $count ]) ];
+:local action ($"mode-button"->[ :tostr $count ]);
+:local parsed [ :parse $action ];
:set ($"mode-button"->"count") 0;
/ system scheduler remove mode-button-scheduler;
-:log info ("Acting on " . $count . " mode-button presses.");
-$action;
+:log info ("Acting on " . $count . " mode-button presses: " . $action);
+$parsed;