Skip to content

Commit c8f7886

Browse files
committedSep 26, 2016
Fix server error when no log file set
(cherry-picked from f5ffbbf)
1 parent 2ae875f commit c8f7886

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/server/qgsserverlogger.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ QgsServerLogger::QgsServerLogger(): mLogFile( nullptr )
3838
{
3939
//logfile
4040
QString filePath = getenv( "QGIS_SERVER_LOG_FILE" );
41+
if ( filePath.isEmpty() )
42+
return;
43+
4144
mLogFile.setFileName( filePath );
4245
if ( mLogFile.open( QIODevice::Append ) )
4346
{

0 commit comments

Comments
 (0)
Please sign in to comment.