mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-09 17:44:29 +02: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:
parent
5e481a768b
commit
0e73f85c11
1 changed files with 0 additions and 3 deletions
|
@ -27,7 +27,6 @@
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global WaitFullyConnected;
|
|
||||||
|
|
||||||
$ScriptLock $0;
|
$ScriptLock $0;
|
||||||
|
|
||||||
|
@ -40,8 +39,6 @@ $ScriptLock $0;
|
||||||
$LogPrintExit2 info $0 ("Rate limit in action, not forwarding logs, if any!") true;
|
$LogPrintExit2 info $0 ("Rate limit in action, not forwarding logs, if any!") true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$WaitFullyConnected;
|
|
||||||
|
|
||||||
:local Count 0;
|
:local Count 0;
|
||||||
:local Duplicates false;
|
:local Duplicates false;
|
||||||
:local Last [ $IfThenElse ([ :len $LogForwardLast ] > 0) [ $HexToNum $LogForwardLast ] -1 ];
|
:local Last [ $IfThenElse ([ :len $LogForwardLast ] > 0) [ $HexToNum $LogForwardLast ] -1 ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue