Added traceback in case of nil score

This commit is contained in:
MatteoBiscosi 2022-07-20 13:14:49 +02:00
parent 3db8cc6cc8
commit 3f214341ea
18 changed files with 31 additions and 19 deletions

View file

@ -172,7 +172,7 @@ function syslog.dequeueRecipientAlerts(recipient, budget)
-- Most recent notifications first
for _, notification in ipairs(notifications) do
syslog.sendMessage(settings, notification.alert, ntop.mapScoreToSeverity(notification.score))
syslog.sendMessage(settings, notification.alert, map_score_to_severity(notification.score))
end
return {success = true, more_available = true}