Skip to content

Commit

Permalink
more-log
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 21, 2021
1 parent f4182f6 commit 3a88e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/qgsserverprojectutils.cpp
Expand Up @@ -429,10 +429,13 @@ QString QgsServerProjectUtils::serviceUrl( const QString &service, const QgsServ
QString QgsServerProjectUtils::wmsServiceUrl( const QgsProject &project, const QgsServerRequest &request, const QgsServerSettings &settings )
{
QString url = project.readEntry( QStringLiteral( "WMSUrl" ), QStringLiteral( "/" ), "" );
QgsMessageLog.logMessage( QStringLiteral( "Service URL from project %1" ).arg( url ), QStringLiteral( "Server" ) )
if ( url.isEmpty() )
{
QgsMessageLog.logMessage( QStringLiteral( "Service URL out of project" ), QStringLiteral( "Server" ) )
url = serviceUrl( QStringLiteral( "WMS" ), request, settings );
}
QgsMessageLog.logMessage( QStringLiteral( "Service URL finnaly %1" ).arg( url ), QStringLiteral( "Server" ) )
return url;
}

Expand Down

0 comments on commit 3a88e45

Please sign in to comment.