Skip to content

Commit

Permalink
[postgres] Silence some debug noise
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 10, 2021
1 parent 8bf2902 commit 11cd45f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/postgres/qgspostgresdataitems.cpp
Expand Up @@ -34,7 +34,7 @@

bool QgsPostgresUtils::deleteLayer( const QString &uri, QString &errCause )
{
QgsDebugMsg( "deleting layer " + uri );
QgsDebugMsgLevel( "deleting layer " + uri, 2 );

QgsDataSourceUri dsUri( uri );
QString schemaName = dsUri.schema();
Expand Down Expand Up @@ -129,7 +129,7 @@ bool QgsPostgresUtils::deleteLayer( const QString &uri, QString &errCause )

bool QgsPostgresUtils::deleteSchema( const QString &schema, const QgsDataSourceUri &uri, QString &errCause, bool cascade )
{
QgsDebugMsg( "deleting schema " + schema );
QgsDebugMsgLevel( "deleting schema " + schema, 2 );

if ( schema.isEmpty() )
return false;
Expand Down Expand Up @@ -262,7 +262,7 @@ bool QgsPGConnectionItem::handleDrop( const QMimeData *data, const QString &toSc
if ( srcLayer->isValid() )
{
uri.setDataSource( QString(), u.name, srcLayer->geometryType() != QgsWkbTypes::NullGeometry ? QStringLiteral( "geom" ) : QString() );
QgsDebugMsg( "URI " + uri.uri( false ) );
QgsDebugMsgLevel( "URI " + uri.uri( false ), 2 );

if ( !toSchema.isNull() )
{
Expand Down Expand Up @@ -365,7 +365,7 @@ QString QgsPGLayerItem::createUri()
if ( uri.wkbType() != QgsWkbTypes::NoGeometry && mLayerProperty.srids.at( 0 ) != std::numeric_limits<int>::min() )
uri.setSrid( QString::number( mLayerProperty.srids.at( 0 ) ) );

QgsDebugMsg( QStringLiteral( "layer uri: %1" ).arg( uri.uri( false ) ) );
QgsDebugMsgLevel( QStringLiteral( "layer uri: %1" ).arg( uri.uri( false ) ), 2 );
return uri.uri( false );
}

Expand Down

0 comments on commit 11cd45f

Please sign in to comment.