From 0a67a00ec0eb9cadc06b6e6e0404a30362003e18 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 12 Mar 2014 19:06:00 +0100 Subject: [PATCH] Initialise logging earlier. --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 89265b5f8..ee5adf387 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -287,6 +287,12 @@ int main(int argc, char* argv[]) { CommandlineOptions options(argc, argv); + // Initialise logging + logging::Init(); + logging::SetLevels(options.log_levels()); + g_log_set_default_handler(reinterpret_cast(&logging::GLog), + nullptr); + { // Only start a core application now so we can check if there's another // Clementine running without needing an X server. @@ -326,12 +332,6 @@ int main(int argc, char* argv[]) { lastfm::setNetworkAccessManager(new NetworkAccessManager); #endif - // Initialise logging - logging::Init(); - logging::SetLevels(options.log_levels()); - g_log_set_default_handler(reinterpret_cast(&logging::GLog), - nullptr); - // Output the version, so when people attach log output to bug reports they // don't have to tell us which version they're using. qLog(Info) << "Clementine" << CLEMENTINE_VERSION_DISPLAY;