Commit 165af023 authored by Alessio Netti's avatar Alessio Netti
Browse files

Minor changes

- MaxMsgNum configuration parameter now defaults to 0 (no message cap)
- The sensor hierarchy string is now logged at startup
- A rebuild of the SensorNavigator is now triggered only at plugin
reloads over the REST API
parent 07fe0654
......@@ -31,7 +31,7 @@ Configuration::Configuration(const std::string& cfgFilePath) :
_global.brokerHost = "";
_global.brokerPort = 1883;
_global.threads = 1;
_global.maxMsgNum = 100;
_global.maxMsgNum = 0;
_global.maxInflightMsgNum = 20;
_global.maxQueuedMsgNum = 0;
_global.logLevelFile = boost::log::trivial::trace;
......
......@@ -371,7 +371,8 @@ void HttpsServer::requestHandler::operator()(server::request const &request, ser
goto error;
}
//Updating the SensorNavigator on plugin changes
//Updating the SensorNavigator on plugin reloads
if(action == "reload") {
QueryEngine &qEngine = QueryEngine::getInstance();
std::shared_ptr <SensorNavigator> navigator = std::make_shared<SensorNavigator>();
vector <std::string> names, topics;
......@@ -386,6 +387,7 @@ void HttpsServer::requestHandler::operator()(server::request const &request, ser
qEngine.triggerUpdate();
}
}
}
LOGH(info) << "Responding: " << response;
data << response << std::endl;
......
......@@ -329,6 +329,7 @@ int main(int argc, char** argv) {
LOG(info) << " MQTT-QoS: " << globalSettings.qosLevel;
LOG(info) << " MQTT-prefix: " << pluginSettings.mqttPrefix;
LOG(info) << " Write-Dir: " << pluginSettings.tempdir;
LOG(info) << " Hierarchy: " << globalSettings.hierarchy;
LOG(info) << " CacheInterval: " << pluginSettings.cacheInterval / 1000 << " [s]";
if(globalSettings.validateConfig) {
LOG(info) << " Only validating config files.";
......
Supports Markdown
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