lease-script: add the order in log

This commit is contained in:
Christian Hesse 2021-07-08 17:51:55 +02:00
parent 6bf8cd5fac
commit 6c9f733d96

View file

@ -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;