mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
log-forward: list messages with 'black circle'
This commit is contained in:
parent
f762d395eb
commit
b1647c760c
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
||||||
:global LogForwardFilterMessage;
|
:global LogForwardFilterMessage;
|
||||||
:global LogForwardLast;
|
:global LogForwardLast;
|
||||||
:global LogForwardRateLimit;
|
:global LogForwardRateLimit;
|
||||||
|
:global NotificationsWithSymbols;
|
||||||
|
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
@ -53,8 +54,8 @@ $WaitFullyConnected;
|
||||||
} else={
|
} else={
|
||||||
:local DupCount ($MessageDups->($MessageVal->"message"));
|
:local DupCount ($MessageDups->($MessageVal->"message"));
|
||||||
:if ($DupCount < 3) do={
|
:if ($DupCount < 3) do={
|
||||||
:set Messages ($Messages . "\n" . $MessageVal->"time" . " " . \
|
:set Messages ($Messages . "\n" . [ $IfThenElse ($NotificationsWithSymbols = true) (" \E2\97\8F ") ] . \
|
||||||
[ :tostr ($MessageVal->"topics") ] . " " . $MessageVal->"message");
|
$MessageVal->"time" . " " . [ :tostr ($MessageVal->"topics") ] . " " . $MessageVal->"message");
|
||||||
} else={
|
} else={
|
||||||
:set Duplicates true;
|
:set Duplicates true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue