Skip to content

Commit

Permalink
Added a little more debug info so show which projects were found and …
Browse files Browse the repository at this point in the history
…which default was used.
  • Loading branch information
timlinux committed Jan 13, 2014
1 parent e745b2f commit 88c73a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mapserver/qgis_map_serv.cpp
Expand Up @@ -137,6 +137,11 @@ QFileInfo defaultProjectFile()
QStringList nameFilterList;
nameFilterList << "*.qgs";
QFileInfoList projectFiles = currentDir.entryInfoList( nameFilterList, QDir::Files, QDir::Name );
QgsDebugMsg( "Project files found:" );
for ( int x = 0; x < projectFiles.size(); x++ )
{
QgsDebugMsg( projectFiles.at( x ).absoluteFilePath() );
}
if ( projectFiles.size() < 1 )
{
return QFileInfo();
Expand Down Expand Up @@ -224,6 +229,7 @@ int main( int argc, char * argv[] )
if ( projectFileInfo.exists() )
{
defaultConfigFilePath = projectFileInfo.absoluteFilePath();
QgsDebugMsg( "Using default project file: " + defaultConfigFilePath );
}
else
{
Expand Down Expand Up @@ -256,7 +262,7 @@ int main( int argc, char * argv[] )
{
printRequestInfos(); //print request infos if in debug mode
#ifdef QGSMSDEBUG
QgsDebugMsg( QString( "Test font %1loaded from testdata.qrc" ).arg( testFontLoaded ? "" : "NOT " ) );
QgsDebugMsg( QString( "Test font %1 loaded from testdata.qrc" ).arg( testFontLoaded ? "" : "NOT " ) );
#endif

//use QgsGetRequestHandler in case of HTTP GET and QgsSOAPRequestHandler in case of HTTP POST
Expand Down

0 comments on commit 88c73a1

Please sign in to comment.