log-forward: list messages with 'black circle'

This commit is contained in:
Christian Hesse 2021-03-04 18:47:55 +01:00
parent f762d395eb
commit b1647c760c

View file

@ -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;
} }