diff --git a/src/server/qgsfcgiserverresponse.cpp b/src/server/qgsfcgiserverresponse.cpp index 22219498693f..16ab4fc56c33 100644 --- a/src/server/qgsfcgiserverresponse.cpp +++ b/src/server/qgsfcgiserverresponse.cpp @@ -114,9 +114,7 @@ void QgsSocketMonitoringThread::run() } #if defined( Q_OS_UNIX ) && !defined( Q_OS_ANDROID ) -#ifdef QGISDEBUG const pid_t threadId = gettid(); -#endif mShouldStop.store( false ); char c; @@ -135,10 +133,10 @@ void QgsSocketMonitoringThread::run() if ( rv == -1 ) { // socket closed, nothing can be read - QgsDebugMsgLevel( QStringLiteral( "FCGIServer %1: remote socket has been closed (select)! errno: %2" ) // - .arg( threadId ) - .arg( errno ), - 1 ); + QgsMessageLog::logMessage( QStringLiteral( "FCGIServer %1: remote socket has been closed (select)! errno: %2" ) // + .arg( threadId ) + .arg( errno ), + QStringLiteral( "FCGIServer" ), Qgis::MessageLevel::Warning ); mFeedback->cancel(); break; } @@ -157,11 +155,11 @@ void QgsSocketMonitoringThread::run() else { // socket closed, nothing can be read - QgsDebugMsgLevel( QStringLiteral( "FCGIServer %1: remote socket has been closed (recv)! errno: %2, x: %3" ) // - .arg( threadId ) - .arg( errno ) - .arg( x ), - 1 ); + QgsMessageLog::logMessage( QStringLiteral( "FCGIServer %1: remote socket has been closed (recv)! errno: %2, x: %3" ) // + .arg( threadId ) + .arg( errno ) + .arg( x ), + QStringLiteral( "FCGIServer" ), Qgis::MessageLevel::Warning ); mFeedback->cancel(); break; }