mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Added traceback in case of nil score
This commit is contained in:
parent
3db8cc6cc8
commit
3f214341ea
18 changed files with 31 additions and 19 deletions
|
|
@ -104,7 +104,7 @@ function slack.dequeueRecipientAlerts(recipient, budget)
|
|||
|
||||
for _, json_message in ipairs(notifications) do
|
||||
local notif = json.decode(json_message)
|
||||
notif.severity = ntop.mapScoreToSeverity(notif.score)
|
||||
notif.severity = map_score_to_severity(notif.score)
|
||||
if notif.entity_id then
|
||||
if not alerts_by_types[notif.entity_id] then
|
||||
alerts_by_types[notif.entity_id] = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue