Skip to content
Permalink
Browse files

Added a little more debug info so show which projects were found and …

…which default was used.
  • Loading branch information
timlinux committed Jan 13, 2014
1 parent e745b2f commit 88c73a13c5aa58e2fac4cdab9642354599e1199e
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/mapserver/qgis_map_serv.cpp
@@ -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();
@@ -224,6 +229,7 @@ int main( int argc, char * argv[] )
if ( projectFileInfo.exists() )
{
defaultConfigFilePath = projectFileInfo.absoluteFilePath();
QgsDebugMsg( "Using default project file: " + defaultConfigFilePath );
}
else
{
@@ -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

0 comments on commit 88c73a1

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