Skip to content

Commit

Permalink
Remove the password when a layer is not found from the log
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Aug 3, 2023
1 parent 8ab53d1 commit d66a92f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/project/qgsprojectbadlayerhandler.cpp
Expand Up @@ -13,6 +13,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
#include "qgsdatasourceuri.h"
#include "qgsprojectbadlayerhandler.h"
#include "qgslogger.h"
#include "qgsmessagelog.h"
Expand All @@ -27,7 +28,7 @@ void QgsProjectBadLayerHandler::handleBadLayers( const QList<QDomNode> &layers )

for ( const QDomNode &layer : layers )
{
QgsMessageLog::logMessage( QObject::tr( " * %1" ).arg( dataSource( layer ) ) );
QgsMessageLog::logMessage( QObject::tr( " * %1" ).arg( QgsDataSourceUri::removePassword( dataSource( layer ) ) ) );
}
}

Expand Down

0 comments on commit d66a92f

Please sign in to comment.