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={ :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) \