mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Adds traces for Xv
This commit is contained in:
parent
fc1a1d8bf5
commit
0369ac5e72
1 changed files with 16 additions and 0 deletions
|
|
@ -774,6 +774,22 @@ function user_scripts.loadUnloadUserScripts(is_load)
|
|||
-- each available configuration existing for the user script
|
||||
local s = config.config[subdir.id][script.key]
|
||||
|
||||
if not config.config then
|
||||
traceError(TRACE_ERROR,TRACE_CONSOLE, string.format("Configuration is missing"))
|
||||
return
|
||||
end
|
||||
|
||||
if not config.config[subdir.id] then
|
||||
traceError(TRACE_ERROR,TRACE_CONSOLE, string.format("Missing subdir '%s' from config", subdir.id))
|
||||
return
|
||||
end
|
||||
|
||||
if not config.config[subdir.id][script.key] then
|
||||
traceError(TRACE_ERROR,TRACE_CONSOLE,
|
||||
string.format("Script '%s' configuration is missing from subdir '%s'", script.key, subdir.id))
|
||||
return
|
||||
end
|
||||
|
||||
if(s ~= nil) then
|
||||
for hook, hook_config in pairs(s) do
|
||||
-- For each configuration there are multiple hooks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue