mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Add more VS and email debug
This commit is contained in:
parent
d13e92ecf2
commit
f3eb3303fa
3 changed files with 34 additions and 13 deletions
|
|
@ -164,10 +164,20 @@ function email.dequeueRecipientAlerts(recipient, budget)
|
|||
local notification = ntop.recipient_dequeue(recipient.recipient_id)
|
||||
|
||||
if notification then
|
||||
|
||||
if debug_endpoint then
|
||||
tprint("Email: dequeued notification")
|
||||
tprint(notification)
|
||||
end
|
||||
|
||||
if alert_utils.filter_notification(notification, recipient.recipient_id) then
|
||||
|
||||
local notif = json.decode(notification.alert)
|
||||
|
||||
if debug_endpoint then
|
||||
tprint("Email: notification matched the filter")
|
||||
end
|
||||
|
||||
notifications[#notifications + 1] = notif
|
||||
|
||||
i = i + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue