Make currently used settings be printed out at application start
Due to the SettingsController being a static object it will be initialized before the main method has been run. This will cause easylogging to log using the default logging style instead of the defined application style. Because of this the settings are propogated up through a function into the main method.
This commit is contained in:
+5
-2
@@ -7,6 +7,11 @@ int main( int argc, char* argv[] )
|
||||
{
|
||||
setUpLogging();
|
||||
|
||||
LOG( INFO ) << "Settings File: "
|
||||
<< settings::initializeAndGetSettingsPath();
|
||||
|
||||
LOG( INFO ) << settings::getSettingsAndValues();
|
||||
|
||||
MyQApplication mainEventLoop( argc, argv );
|
||||
mainEventLoop.setOrganizationName(
|
||||
application_strings::applicationOrganizationName );
|
||||
@@ -40,8 +45,6 @@ int main( int argc, char* argv[] )
|
||||
mainEventLoop.organizationName(),
|
||||
mainEventLoop.applicationName() );
|
||||
advsettings::OverlayController::setAppSettings( &appSettings );
|
||||
LOG( INFO ) << "Settings File: "
|
||||
<< settings::initializeAndGetSettingsPath();
|
||||
|
||||
QQmlEngine qmlEngine;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user