mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-15 07:22:22 +02:00
script-updates: use $LogPrintExit for debug
This commit is contained in:
parent
3ec34fa752
commit
34255c9050
1 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($Ignore = 0) do={
|
:if ($Ignore = 0) do={
|
||||||
:log debug ("Fetching script from url: " . $ScriptVal->"name");
|
$LogPrintExit debug ("Fetching script from url: " . $ScriptVal->"name") false;
|
||||||
:do {
|
:do {
|
||||||
:local Result [ / tool fetch check-certificate=yes-without-crl \
|
:local Result [ / tool fetch check-certificate=yes-without-crl \
|
||||||
($ScriptUpdatesBaseUrl . $ScriptVal->"name" . $ScriptUpdatesUrlSuffix) \
|
($ScriptUpdatesBaseUrl . $ScriptVal->"name" . $ScriptUpdatesUrlSuffix) \
|
||||||
|
@ -78,13 +78,13 @@
|
||||||
/ system script run global-functions;
|
/ system script run global-functions;
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
:log debug ("Script " . $ScriptVal->"name" . " did not change.");
|
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrintExit warning ("Looks like new script " . $ScriptVal->"name" . " is not valid. Ignoring!") false;
|
$LogPrintExit warning ("Looks like new script " . $ScriptVal->"name" . " is not valid. Ignoring!") false;
|
||||||
}
|
}
|
||||||
} else={
|
} 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 . \
|
"\$GlobalConfigVersion (currently " . $GlobalConfigVersion . \
|
||||||
") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
|
") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
|
||||||
|
|
||||||
:log debug ("Fetching changelog.");
|
$LogPrintExit debug ("Fetching changelog.") false;
|
||||||
:do {
|
:do {
|
||||||
:local Result [ / tool fetch check-certificate=yes-without-crl \
|
:local Result [ / tool fetch check-certificate=yes-without-crl \
|
||||||
($ScriptUpdatesBaseUrl . "global-config.changes" . $ScriptUpdatesUrlSuffix) \
|
($ScriptUpdatesBaseUrl . "global-config.changes" . $ScriptUpdatesUrlSuffix) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue