From 0e73f85c113e5866be2de2a281704eb8cdebd0c5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 16 May 2022 12:42:38 +0200 Subject: 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. --- log-forward | 3 --- 1 file changed, 3 deletions(-) diff --git a/log-forward b/log-forward index 1aa0363..bb57522 100644 --- a/log-forward +++ b/log-forward @@ -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 ]; -- cgit v1.2.3-70-g09d2