Skip to content
Permalink
Browse files
more-log
  • Loading branch information
sbrunner committed Dec 23, 2021
1 parent 1812c9e commit cfdac864d88d9854549ec1c8d17d57d5c2710f78
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/server/qgsserverprojectutils.cpp
@@ -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;
}

0 comments on commit cfdac86

Please sign in to comment.