fix log level when used from config

This commit is contained in:
redPanther 2016-10-14 13:52:21 +02:00 committed by GitHub
parent 838ec928d8
commit 6a06dfabdd

View File

@ -52,10 +52,7 @@ HyperionDaemon::HyperionDaemon(QString configFile, QObject *parent)
, _hyperion(nullptr)
{
loadConfig(configFile);
_hyperion = Hyperion::initInstance(_qconfig, configFile.toStdString());
if (Logger::getLogLevel() == Logger::WARNING)
{
if (_qconfig.contains("logger"))
@ -75,6 +72,8 @@ HyperionDaemon::HyperionDaemon(QString configFile, QObject *parent)
WarningIf(_qconfig.contains("logger"), Logger::getInstance("LOGGER"), "Logger settings overriden by command line argument");
}
_hyperion = Hyperion::initInstance(_qconfig, configFile.toStdString());
Info(_log, "Hyperion initialised");
}