mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
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:
@@ -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 ];
|
||||
|
Reference in New Issue
Block a user