Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a91c057

Browse files
Gustrygithub-actions[bot]
authored andcommittedAug 3, 2023
Remove the password when a layer is not found from the log
1 parent 8ab53d1 commit a91c057

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/project/qgsprojectbadlayerhandler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* (at your option) any later version. *
1414
* *
1515
***************************************************************************/
16+
#include "qgsdatasourceuri.h"
1617
#include "qgsprojectbadlayerhandler.h"
1718
#include "qgslogger.h"
1819
#include "qgsmessagelog.h"
@@ -27,7 +28,7 @@ void QgsProjectBadLayerHandler::handleBadLayers( const QList<QDomNode> &layers )
2728

2829
for ( const QDomNode &layer : layers )
2930
{
30-
QgsMessageLog::logMessage( QObject::tr( " * %1" ).arg( dataSource( layer ) ) );
31+
QgsMessageLog::logMessage( QObject::tr( " * %1" ).arg( QgsDataSourceUri::removePassword( dataSource( layer ) ) ) );
3132
}
3233
}
3334

0 commit comments

Comments
 (0)
Please sign in to comment.