Moved notification formatting function (#7781)

This commit is contained in:
Matteo Biscosi 2023-08-25 09:19:44 +00:00
parent ba330e8e0d
commit 144de3a7e6
9 changed files with 75 additions and 35 deletions

View file

@ -104,7 +104,7 @@ function syslog.sendMessage(settings, notif, severity)
end
else -- syslog_format == "plaintext" or "plaintextrfc"
-- prepare a plain text message
msg = alert_utils.formatAlertNotification(json.decode(notif), {
msg = format_utils.formatMessage(json.decode(notif), {
nohtml = true,
show_severity = true,
show_entity = true,