Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix server error when no log file set
(cherry-picked from f5ffbbf)
  • Loading branch information
nyalldawson committed Sep 26, 2016
1 parent 4963fa9 commit 9a483c2
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 9a483c2

Please sign in to comment.