Skip to content

Commit

Permalink
fix(fcgiserver): log warning message instead of debug
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitdm-oslandia committed Jan 16, 2025
1 parent 0744530 commit ef5b375
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/server/qgsfcgiserverresponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit ef5b375

Please sign in to comment.