Commit d7eb5d20 authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: bugfix in collectagent

- Fixed a bug in the collectagent that caused the QueryEngine to not
be treated correctly, due to a missing linking flag
parent 926c2cb8
......@@ -34,7 +34,8 @@ LIBS = -L../lib \
-lboost_date_time \
-lboost_log_setup \
-lboost_log \
-lboost_regex
-lboost_regex \
-rdynamic
TARGET = collectagent
......
......@@ -493,13 +493,13 @@ int main(int argc, char* const argv[]) {
analyticsController = new AnalyticsController(mySensorConfig, mySensorDataStore);
analyticsController->setCache(&mySensorCache);
if(!analyticsController->initialize(settings, argv[argc - 1]))
return EXIT_FAILURE;
queryEngine.setFilter(analyticsSettings.filter);
queryEngine.setSensorHierarchy(analyticsSettings.hierarchy);
queryEngine.setQueryCallback(sensorQueryCallback);
queryEngine.setJobQueryCallback(jobQueryCallback);
if(!analyticsController->initialize(settings, argv[argc - 1]))
return EXIT_FAILURE;
LOG_LEVEL vLogLevel = settings.validateConfig ? LOG_LEVEL::info : LOG_LEVEL::debug;
LOG_VAR(vLogLevel) << "----- Configuration -----";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment