log-forward: do *not* wait to be fully connected

Let's forward logs as early as possible.

All notification functions are expected to handle notifications with
queues, so nothing is lost. Just the opposite: Logs being rotated before
forwarding becomes less likely.
This commit is contained in:
Christian Hesse 2022-05-16 12:42:38 +02:00
parent 5e481a768b
commit 0e73f85c11

View file

@ -27,7 +27,6 @@
:global ScriptLock;
:global SendNotification2;
:global SymbolForNotification;
:global WaitFullyConnected;
$ScriptLock $0;
@ -40,8 +39,6 @@ $ScriptLock $0;
$LogPrintExit2 info $0 ("Rate limit in action, not forwarding logs, if any!") true;
}
$WaitFullyConnected;
:local Count 0;
:local Duplicates false;
:local Last [ $IfThenElse ([ :len $LogForwardLast ] > 0) [ $HexToNum $LogForwardLast ] -1 ];