mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix log level when used from config
This commit is contained in:
parent
838ec928d8
commit
6a06dfabdd
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user