Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleanup debug noise
  • Loading branch information
nyalldawson committed Apr 11, 2023
1 parent 91bc780 commit 3741853
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/providers/postgres/qgspostgresdataitems.cpp
Expand Up @@ -35,7 +35,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 @@ -151,7 +151,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 @@ -242,7 +242,6 @@ bool QgsPGConnectionItem::equal( const QgsDataItem *other )
return ( mPath == o->mPath && mName == o->mName );
}


void QgsPGConnectionItem::refreshSchema( const QString &schema )
{
const auto constMChildren = mChildren;
Expand Down Expand Up @@ -294,7 +293,7 @@ bool QgsPGConnectionItem::handleDrop( const QMimeData *data, const QString &toSc

uri.setDataSource( QString(), u.name, srcLayer->geometryType() != Qgis::GeometryType::Null ? geomColumn : QString() );

QgsDebugMsg( "URI " + uri.uri( false ) );
QgsDebugMsgLevel( "URI " + uri.uri( false ), 2 );

if ( !toSchema.isNull() )
{
Expand Down Expand Up @@ -397,7 +396,7 @@ QString QgsPGLayerItem::createUri()
if ( uri.wkbType() != Qgis::WkbType::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 3741853

Please sign in to comment.