From 89f4c91ccf35b65905dda8ce584d8a53faf6c957 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 20 May 2022 08:33:22 +0200 Subject: log-forward: change symbol for notification --- log-forward | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'log-forward') diff --git a/log-forward b/log-forward index bb57522..3867519 100644 --- a/log-forward +++ b/log-forward @@ -47,7 +47,7 @@ $ScriptLock $0; :local MessageDups [ :toarray "" ]; :local LogForwardFilterLogForwarding ("^" . [ $EscapeForRegEx ("Error sending e-mail <" . \ - [ $QuotedPrintable ("[" . $Identity . "] " . [ $SymbolForNotification "warning-sign" ] . \ + [ $QuotedPrintable ("[" . $Identity . "] " . [ $SymbolForNotification "memo" ] . \ "Log Forwarding") ] . ">:") ]); :foreach Message in=[ /log/find where (!(message="") and !(message~$LogForwardFilterLogForwarding) and \ !(topics~$LogForwardFilter) and !(message~$LogForwardFilterMessage)) or \ @@ -69,7 +69,7 @@ $ScriptLock $0; :if ($Count > 0) do={ $SendNotification2 ({ origin=$0; \ - subject=([ $SymbolForNotification "warning-sign" ] . "Log Forwarding"); \ + subject=([ $SymbolForNotification "memo" ] . "Log Forwarding"); \ message=("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \ "this message" ("these " . $Count . " messages") ] . " after " . \ [ /system/resource/get uptime ] . " uptime." . [ $IfThenElse ($Duplicates = true) \ -- cgit v1.2.3-70-g09d2