aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 20:45:51 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commit81f84353cd75fb8e91e2e02d70b5ed5f17df12dd (patch)
tree088e14ae5cff0ad9832326f0c35eee0410af1a5c
parent354aedd98e308ca860796c2f8fdd53ea9eedbb17 (diff)
log-forward: use $SendNotification2
-rw-r--r--log-forward12
1 files changed, 6 insertions, 6 deletions
diff --git a/log-forward b/log-forward
index 8842c7c..74aaeb4 100644
--- a/log-forward
+++ b/log-forward
@@ -22,7 +22,7 @@
:global LogPrintExit2;
:global QuotedPrintable;
:global ScriptLock;
-:global SendNotification;
+:global SendNotification2;
:global SymbolForNotification;
:global WaitFullyConnected;
@@ -71,11 +71,11 @@ $WaitFullyConnected;
}
:if ($Count > 0) do={
- $SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
- ("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
- "this message" ("these " . $Count . " messages") ] . " after " . \
- [ / system resource get uptime ] . " uptime." . [ $IfThenElse ($Duplicates = true) \
- (" Multi-repeated messages have been skipped.") ] . "\n" . $Messages);
+ $SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "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) \
+ (" Multi-repeated messages have been skipped.") ] . "\n" . $Messages) });
:set LogForwardRateLimit ($LogForwardRateLimit + 10);
:set LogForwardLast ($MessageVal->".id");