Reworked behavioural exception handling

This commit is contained in:
Luca Deri 2024-01-12 17:12:29 +01:00
parent 8016be9ec5
commit 85f29042ec
7 changed files with 107 additions and 35 deletions

View file

@ -19,15 +19,9 @@ end
-- Function used to reload the custom applications (the protocol file, -p option)
local function reloadApplications()
-- traceError(TRACE_NORMAL, TRACE_CONSOLE, string.format("Reloading the custom applications"))
if (not ntop.initnDPIReload()) then
-- Too early, need to retry later
traceError(TRACE_ERROR, TRACE_CONSOLE, string.format("Error while reloading the custom applications"))
return (false)
end
local lists_utils = require "lists_utils"
-- traceError(TRACE_NORMAL, TRACE_CONSOLE, string.format("Finalizing the reload of custom applications"))
ntop.finalizenDPIReload()
lists_utils.reloadLists()
end
-- ##############################################