Skip to content

Commit

Permalink
Use better environment variable names for server logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 19, 2014
1 parent ee93d65 commit bdf1ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapserver/qgsserverlogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ QgsServerLogger* QgsServerLogger::instance()
QgsServerLogger::QgsServerLogger(): mLogFile( 0 )
{
//logfile
QString filePath = getenv( "QGIS_LOG_FILE" );
QString filePath = getenv( "QGIS_SERVER_LOG_FILE" );
mLogFile.setFileName( filePath );
if ( mLogFile.open( QIODevice::Append ) )
{
mTextStream.setDevice( &mLogFile );
}

//log level
char* logLevelChar = getenv( "QGIS_LOG_LEVEL" );
char* logLevelChar = getenv( "QGIS_SERVER_LOG_LEVEL" );
if ( logLevelChar )
{
mLogLevel = atoi( logLevelChar );
Expand Down

0 comments on commit bdf1ac8

Please sign in to comment.