From c13c033f01122b8e78871efba2bd1ca5e2f7c8cc Mon Sep 17 00:00:00 2001 From: bdm-oslandia Date: Tue, 14 Jan 2025 11:57:06 +0100 Subject: [PATCH] fix(fcgiserver): log warning message instead of debug --- src/server/qgsfcgiserverresponse.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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; }