mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
More robust plugins loading and error reporting
This prevents malformed scripts in plugins from breaking ntopng
This commit is contained in:
parent
83f30ec0f3
commit
e9a081903c
5 changed files with 213 additions and 65 deletions
|
|
@ -93,6 +93,10 @@ function alertTypeLabel(v, nohtml)
|
|||
end
|
||||
|
||||
function alertType(v)
|
||||
if(alert_consts.alert_types[v] == nil) then
|
||||
tprint(debug.traceback())
|
||||
end
|
||||
|
||||
return(alert_consts.alert_types[v].alert_id)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue