early-errors: ... but exclude e-mail messages

Most likely these are just error and critical messages failed sending anyway.
This commit is contained in:
Christian Hesse 2020-04-24 23:17:21 +02:00
parent 7c288c6203
commit fee2c4d4ad

View file

@ -9,7 +9,7 @@
:global SendNotification;
:local Errors [ / log find where topics~"error" or topics~"critical" ];
:local Errors [ / log find where (topics~"error" or topics~"critical") !(topics~"e-mail") ];
:local ErrCount [ :len $Errors ];
:if ($ErrCount > 0) do={
:local Message ("The log on " . $Identity . " contains " . $ErrCount . \