From e086d9a56afb76fac50f0ed3718e6ce3de2a3321 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 24 Oct 2017 16:20:47 +0200 Subject: [PATCH] [postgres] A bit less talky --- src/providers/postgres/qgspostgresconn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/postgres/qgspostgresconn.cpp b/src/providers/postgres/qgspostgresconn.cpp index ad2435ba398..8b837abc2a8 100644 --- a/src/providers/postgres/qgspostgresconn.cpp +++ b/src/providers/postgres/qgspostgresconn.cpp @@ -1066,7 +1066,7 @@ bool QgsPostgresConn::openCursor( const QString &cursorName, const QString &sql { if ( mOpenCursors++ == 0 && !mTransaction ) { - QgsDebugMsg( QString( "Starting read-only transaction: %1" ).arg( mPostgresqlVersion ) ); + QgsDebugMsgLevel( QString( "Starting read-only transaction: %1" ).arg( mPostgresqlVersion ), 4 ); if ( mPostgresqlVersion >= 80000 ) PQexecNR( QStringLiteral( "BEGIN READ ONLY" ) ); else @@ -1084,7 +1084,7 @@ bool QgsPostgresConn::closeCursor( const QString &cursorName ) if ( --mOpenCursors == 0 && !mTransaction ) { - QgsDebugMsg( "Committing read-only transaction" ); + QgsDebugMsgLevel( "Committing read-only transaction", 4 ); PQexecNR( QStringLiteral( "COMMIT" ) ); }