log-forward: fail if global functions do not become ready

Co-authored-by: Ilya Kulakov <kulakov.ilya@gmail.com>
This commit is contained in:
Christian Hesse 2025-05-05 18:01:29 +02:00
parent 6243f96462
commit 15d959f7ba

View file

@ -9,7 +9,8 @@
# https://rsc.eworm.de/doc/log-forward.md
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:onerror e { :retry { :if ($GlobalFunctionsReady != true) \
do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; };
:local ExitOK false;
:do {