Skip to content

Commit

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

Please sign in to comment.