mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Add safety check on threshold
This commit is contained in:
parent
ab0b442608
commit
813277e203
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ function syslog_utils.handle_event(message, host, priority, level_threshold)
|
|||
traceError(TRACE_NORMAL, TRACE_CONSOLE, "[host="..host.."]")
|
||||
|
||||
-- Discard info messages
|
||||
if level <= level_threshold then
|
||||
if level_threshold and level <= level_threshold then
|
||||
|
||||
local entity = alerts_api.hostAlertEntity(host, 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue