1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

script-updates: use $LogPrintExit for debug

This commit is contained in:
Christian Hesse
2020-03-05 08:58:29 +01:00
parent 3ec34fa752
commit 34255c9050

View File

@@ -48,7 +48,7 @@
}
:if ($Ignore = 0) do={
:log debug ("Fetching script from url: " . $ScriptVal->"name");
$LogPrintExit debug ("Fetching script from url: " . $ScriptVal->"name") false;
:do {
:local Result [ / tool fetch check-certificate=yes-without-crl \
($ScriptUpdatesBaseUrl . $ScriptVal->"name" . $ScriptUpdatesUrlSuffix) \
@@ -78,13 +78,13 @@
/ system script run global-functions;
}
} else={
:log debug ("Script " . $ScriptVal->"name" . " did not change.");
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
}
} else={
$LogPrintExit warning ("Looks like new script " . $ScriptVal->"name" . " is not valid. Ignoring!") false;
}
} else={
:log debug ("No update for script " . $ScriptVal->"name" . ".");
$LogPrintExit debug ("No update for script " . $ScriptVal->"name" . ".") false;
}
}
@@ -101,7 +101,7 @@
"\$GlobalConfigVersion (currently " . $GlobalConfigVersion . \
") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
:log debug ("Fetching changelog.");
$LogPrintExit debug ("Fetching changelog.") false;
:do {
:local Result [ / tool fetch check-certificate=yes-without-crl \
($ScriptUpdatesBaseUrl . "global-config.changes" . $ScriptUpdatesUrlSuffix) \