Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the password when a layer is not found from the log
  • Loading branch information
Gustry authored and nyalldawson committed Aug 3, 2023
1 parent 498907c commit 42e5f7b
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 42e5f7b

Please sign in to comment.