diff options
author | Christian Hesse <mail@eworm.de> | 2021-06-23 10:59:04 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-06-23 15:15:19 +0200 |
commit | 39b7bddf497b26a56c20b2dd5722776be11a35ec (patch) | |
tree | 1e49a1cbf44b3a988fb77c94797c331d0509f192 /ppp-on-up | |
parent | f26b3da34224a6b4827f785ab82b1e9eaa40f021 (diff) |
ppp-on-up: use $LogPrintExit2
This will never print to terminal, nevertheless we want proper
log with script name in prefix.
Diffstat (limited to 'ppp-on-up')
-rw-r--r-- | ppp-on-up | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,16 +19,16 @@ } :local IntName [ / interface get $Interface name ]; -:log info ("PPP interface " . $IntName . " is up."); +$LogPrintExit2 info $0 ("PPP interface " . $IntName . " is up.") false; / ipv6 dhcp-client release [ find where interface=$IntName !disabled ]; :foreach Script in=[ / system script find where source~("\n# provides: ppp-on-up\n") ] do={ :local ScriptName [ / system script get $Script name ]; :do { - :log debug ("Running script from ppp-on-up: " . $ScriptName); + $LogPrintExit2 debug $0 ("Running script: " . $ScriptName) false; / system script run $Script; } on-error={ - :log warning ("Running script '" . $ScriptName . "' from ppp-on-up failed!"); + $LogPrintExit2 warning $0 ("Running script '" . $ScriptName . "' failed!") false; } } |