More robust plugins loading and error reporting

This prevents malformed scripts in plugins from breaking ntopng
This commit is contained in:
emanuele-f 2019-12-11 13:18:43 +01:00
parent 83f30ec0f3
commit e9a081903c
5 changed files with 213 additions and 65 deletions

View file

@ -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