From 53cdf0b0541c5e130fa523f9975992425ceed1ce Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 4 Apr 2019 14:10:50 +0200 Subject: [PATCH] [calamares] Log version and supported languages - These logging statements happened before logging was configured, so never ended up in the session log. Move them to be executed later. --- src/calamares/CalamaresApplication.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/calamares/CalamaresApplication.cpp b/src/calamares/CalamaresApplication.cpp index 989290567..0fd307548 100644 --- a/src/calamares/CalamaresApplication.cpp +++ b/src/calamares/CalamaresApplication.cpp @@ -55,16 +55,10 @@ CalamaresApplication::CalamaresApplication( int& argc, char* argv[] ) setApplicationName( QStringLiteral( CALAMARES_APPLICATION_NAME ) ); setApplicationVersion( QStringLiteral( CALAMARES_VERSION ) ); - cDebug() << "Calamares version:" << CALAMARES_VERSION; - CalamaresUtils::installTranslator( QLocale::system(), QString(), this ); QFont f = font(); - - cDebug() << "Default font size" << f.pointSize() << ';' << f.pixelSize() << "px"; CalamaresUtils::setDefaultFontSize( f.pointSize() ); - - cDebug() << "Available languages:" << QString( CALAMARES_TRANSLATION_LANGUAGES ).split( ';' ); } @@ -72,6 +66,8 @@ void CalamaresApplication::init() { Logger::setupLogfile(); + cDebug() << "Calamares version:" << CALAMARES_VERSION; + cDebug() << " languages:" << QString( CALAMARES_TRANSLATION_LANGUAGES ).replace( ";", ", " ); setQuitOnLastWindowClosed( false );