fw-addr-lists: add debug message on successful download

This commit is contained in:
Christian Hesse 2024-04-04 19:37:38 +02:00
parent 4b6d0c02f1
commit af6556bdba

View file

@ -20,6 +20,7 @@
:global CertificateAvailable; :global CertificateAvailable;
:global EitherOr; :global EitherOr;
:global FetchHuge; :global FetchHuge;
:global HumanReadableNum;
:global LogPrint; :global LogPrint;
:global LogPrintOnce; :global LogPrintOnce;
:global ScriptLock; :global ScriptLock;
@ -77,6 +78,8 @@
:set Data ""; :set Data "";
:set Failure true; :set Failure true;
$LogPrint warning $ScriptName ("Failed downloading list from: " . $List->"url"); $LogPrint warning $ScriptName ("Failed downloading list from: " . $List->"url");
} else={
$LogPrint debug $ScriptName ("Downloaded " . [ $HumanReadableNum [ :len $Data ] 1024 ] . "B from: " . $List->"url");
} }
:while ([ :len $Data ] != 0) do={ :while ([ :len $Data ] != 0) do={