log-forward: cache the result of $LogForwardFilterLogForwarding
Looks like the function is called for every message to match otherwise. 😳
This commit is contained in:
parent
2294ac77a8
commit
072d349473
|
@ -47,8 +47,9 @@ $ScriptLock $0;
|
|||
:local MessageVal;
|
||||
:local MessageDups ({});
|
||||
|
||||
:local LogForwardFilterLogForwardingCached [ $EitherOr [ $LogForwardFilterLogForwarding ] ("\$^") ];
|
||||
:foreach Message in=[ /log/find where (!(message="") and \
|
||||
!(message~[ $EitherOr [ $LogForwardFilterLogForwarding ] ("\$^") ]) and \
|
||||
!(message~$LogForwardFilterLogForwardingCached) and \
|
||||
!(topics~$LogForwardFilter) and !(message~$LogForwardFilterMessage)) or \
|
||||
topics~$LogForwardInclude or message~$LogForwardIncludeMessage ] do={
|
||||
:set MessageVal [ /log/get $Message ];
|
||||
|
|
Loading…
Reference in New Issue