Skip to content
Permalink
Browse files

Fix server error when no log file set

  • Loading branch information
nyalldawson committed Sep 19, 2016
1 parent e4f4472 commit f5ffbbf801ff299d6abbba7e2f85ccab67a5c374
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/server/qgsserverlogger.cpp
@@ -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 ) )
{

0 comments on commit f5ffbbf

Please sign in to comment.
You can’t perform that action at this time.