mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix reports. Improve notification format checks.
This commit is contained in:
parent
407d850003
commit
ddf916b330
2 changed files with 18 additions and 15 deletions
|
|
@ -615,7 +615,7 @@ end
|
|||
function format_utils.formatMessage(notification, options)
|
||||
if not notification.score or notification.score == 0 then
|
||||
-- In case it is just a message/report (so no score), format like a normal msg
|
||||
local handled, message format_notification(notification, options)
|
||||
local handled, message = format_notification(notification, options)
|
||||
|
||||
if handled then
|
||||
return message
|
||||
|
|
@ -624,7 +624,9 @@ function format_utils.formatMessage(notification, options)
|
|||
|
||||
-- In case it is an alert, format it by using the standard function
|
||||
local alert_utils = require "alert_utils"
|
||||
return alert_utils.formatAlertNotification(notification, options)
|
||||
local message = alert_utils.formatAlertNotification(notification, options)
|
||||
|
||||
return message
|
||||
end
|
||||
|
||||
-- ######################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue