mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Remove redundant information in alert description.
This commit is contained in:
parent
ee057fb525
commit
9daf1276ae
1 changed files with 3 additions and 3 deletions
|
|
@ -526,9 +526,9 @@ function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, add_score)
|
|||
local info_msg = alert_utils.get_flow_risk_info(alert_risk, alert_json)
|
||||
|
||||
-- Add check info_msg ~= alert.info to avoid duplicated in description msg
|
||||
if (not isEmptyString(info_msg) and info_msg ~= alert.info) then
|
||||
msg = string.format("%s [%s]", msg, info_msg)
|
||||
end
|
||||
--[[if (not isEmptyString(info_msg) and info_msg ~= alert.info) then
|
||||
msg = string.format("%s", msg, info_msg)
|
||||
end--]]
|
||||
end
|
||||
|
||||
return msg or ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue