Skip to content

Commit 88c73a1

Browse files
committed
Added a little more debug info so show which projects were found and which default was used.
1 parent e745b2f commit 88c73a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/mapserver/qgis_map_serv.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ QFileInfo defaultProjectFile()
137137
QStringList nameFilterList;
138138
nameFilterList << "*.qgs";
139139
QFileInfoList projectFiles = currentDir.entryInfoList( nameFilterList, QDir::Files, QDir::Name );
140+
QgsDebugMsg( "Project files found:" );
141+
for ( int x = 0; x < projectFiles.size(); x++ )
142+
{
143+
QgsDebugMsg( projectFiles.at( x ).absoluteFilePath() );
144+
}
140145
if ( projectFiles.size() < 1 )
141146
{
142147
return QFileInfo();
@@ -224,6 +229,7 @@ int main( int argc, char * argv[] )
224229
if ( projectFileInfo.exists() )
225230
{
226231
defaultConfigFilePath = projectFileInfo.absoluteFilePath();
232+
QgsDebugMsg( "Using default project file: " + defaultConfigFilePath );
227233
}
228234
else
229235
{
@@ -256,7 +262,7 @@ int main( int argc, char * argv[] )
256262
{
257263
printRequestInfos(); //print request infos if in debug mode
258264
#ifdef QGSMSDEBUG
259-
QgsDebugMsg( QString( "Test font %1loaded from testdata.qrc" ).arg( testFontLoaded ? "" : "NOT " ) );
265+
QgsDebugMsg( QString( "Test font %1 loaded from testdata.qrc" ).arg( testFontLoaded ? "" : "NOT " ) );
260266
#endif
261267

262268
//use QgsGetRequestHandler in case of HTTP GET and QgsSOAPRequestHandler in case of HTTP POST

0 commit comments

Comments
 (0)