Skip to content

Commit

Permalink
Fix server error when no log file set
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 19, 2016
1 parent e4f4472 commit f5ffbbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/qgsserverlogger.cpp
Expand Up @@ -38,6 +38,9 @@ QgsServerLogger::QgsServerLogger(): mLogFile( nullptr )
{
//logfile
QString filePath = getenv( "QGIS_SERVER_LOG_FILE" );
if ( filePath.isEmpty() )
return;

mLogFile.setFileName( filePath );
if ( mLogFile.open( QIODevice::Append ) )
{
Expand Down

0 comments on commit f5ffbbf

Please sign in to comment.