mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-29 19:10:02 +00:00
Refactor internal scripts for cleaner code
This commit is contained in:
parent
7a2def354a
commit
458a773a93
9 changed files with 128 additions and 109 deletions
|
|
@ -32,7 +32,7 @@ SyslogLuaEngine::SyslogLuaEngine(NetworkInterface *iface) : LuaEngine() {
|
|||
|
||||
ntop->fixPath(script_path);
|
||||
|
||||
if (run_script(script_path, iface, true /* Load only */) < 0) {
|
||||
if(load_script(script_path, iface) < 0) {
|
||||
ntop->getTrace()->traceEvent(TRACE_ERROR, "Failure loading %s", script_path);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue