mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
lease-script: add the order in log
This commit is contained in:
parent
6bf8cd5fac
commit
6c9f733d96
1 changed files with 2 additions and 2 deletions
|
@ -40,10 +40,10 @@ $LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . \
|
|||
}
|
||||
}
|
||||
|
||||
:foreach Script in=$RunOrder do={
|
||||
:foreach Order,Script in=$RunOrder do={
|
||||
:if ([ :len [ / system script job find where script=$Script ] ] < 2) do={
|
||||
:do {
|
||||
$LogPrintExit2 debug $0 ("Running script: " . $Script) false;
|
||||
$LogPrintExit2 debug $0 ("Running script with order " . $Order . ": " . $Script) false;
|
||||
/ system script run $Script;
|
||||
} on-error={
|
||||
$LogPrintExit2 warning $0 ("Running script '" . $Script . "' failed!") false;
|
||||
|
|
Loading…
Reference in a new issue