@@ -580,6 +580,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
580580
581581 mSplash ->showMessage ( tr ( " QGIS Ready!" ), Qt::AlignHCenter | Qt::AlignBottom );
582582
583+ QgsMessageLog::logMessage ( QgsApplication::showSettings () );
584+
583585 QgsMessageLog::logMessage ( tr ( " QGIS Ready!" ) );
584586
585587 mMapTipsVisible = false ;
@@ -613,11 +615,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
613615 // supposedly all actions have been added, now register them to the shortcut manager
614616 QgsShortcutsManager::instance ()->registerAllChildrenActions ( this );
615617
616- // finally show all the application settings as initialised above
617- QgsDebugMsg ( " \n\n\n Application Settings:\n --------------------------\n " );
618- QgsDebugMsg ( QgsApplication::showSettings () );
619- QgsDebugMsg ( " \n --------------------------\n\n\n " );
620-
621618 // request notification of FileOpen events (double clicking a file icon in Mac OS X Finder)
622619 QgsApplication::setFileOpenEventReceiver ( this );
623620
@@ -1755,7 +1752,7 @@ bool QgisApp::createDB()
17551752
17561753 if ( !isDbFileCopied )
17571754 {
1758- QgsDebugMsg ( " [ERROR] Can not make qgis.db private copy" );
1755+ QgsMessageLog::logMessage ( tr ( " [ERROR] Can not make qgis.db private copy" ) );
17591756 return false ;
17601757 }
17611758 }
@@ -2332,7 +2329,7 @@ void QgisApp::addDatabaseLayers( QStringList const & layerPathList, QString cons
23322329 }
23332330 else
23342331 {
2335- QgsDebugMsg (( layerPath ) + " is an invalid layer - not loaded" );
2332+ QgsMessageLog::logMessage ( tr ( " %1 is an invalid layer - not loaded" ). arg ( layerPath ) );
23362333 QMessageBox::critical ( this , tr ( " Invalid Layer" ), tr ( " %1 is an invalid layer and cannot be loaded." ).arg ( layerPath ) );
23372334 delete layer;
23382335 }
@@ -2928,7 +2925,7 @@ bool QgisApp::openLayer( const QString & fileName, bool allowInteractive )
29282925 if ( !ok )
29292926 {
29302927 // we have no idea what this file is...
2931- QgsDebugMsg ( " Unable to load " + fileName );
2928+ QgsMessageLog::logMessage ( tr ( " Unable to load %1 " ). arg ( fileName ) );
29322929 }
29332930
29342931 return ok;
@@ -4539,12 +4536,10 @@ void QgisApp::loadPythonSupport()
45394536 pythonlib.setLoadHints ( QLibrary::ResolveAllSymbolsHint | QLibrary::ExportExternalSymbolsHint );
45404537 if ( !pythonlib.load () )
45414538 {
4542- // using stderr on purpose because we want end users to see this [TS]
4543- QgsDebugMsg ( " Couldn't load Python support library: " + pythonlib.errorString () );
45444539 pythonlib.setFileName ( pythonlibName );
45454540 if ( !pythonlib.load () )
45464541 {
4547- qWarning ( " Couldn't load Python support library: %s " , pythonlib. errorString (). toUtf8 (). data ( ) );
4542+ QgsMessageLog::logMessage ( tr ( " Couldn't load Python support library: %1 " ). arg ( pythonlib. errorString () ) );
45484543 return ;
45494544 }
45504545 }
@@ -4555,7 +4550,7 @@ void QgisApp::loadPythonSupport()
45554550 if ( !pythonlib_inst )
45564551 {
45574552 // using stderr on purpose because we want end users to see this [TS]
4558- QgsDebugMsg ( " Couldn't resolve python support library's instance() symbol." );
4553+ QgsMessageLog::logMessage ( tr ( " Couldn't resolve python support library's instance() symbol." ) );
45594554 return ;
45604555 }
45614556
@@ -4570,7 +4565,7 @@ void QgisApp::loadPythonSupport()
45704565 // init python runner
45714566 QgsPythonRunner::setInstance ( new QgsPythonRunnerImpl ( mPythonUtils ) );
45724567
4573- std::cout << " Python support ENABLED :-) " << std::endl; // OK
4568+ QgsMessageLog::logMessage ( tr ( " Python support ENABLED :-) " ) );
45744569 }
45754570 else
45764571 {
0 commit comments