From 7dbfd4f7925852dd167ae77c0e462867af3bd4ae Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 29 Jan 2024 09:53:02 +0100 Subject: [PATCH] Debug-print non-honoured shared connection requests --- src/providers/postgres/qgspostgresconn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/providers/postgres/qgspostgresconn.cpp b/src/providers/postgres/qgspostgresconn.cpp index 32d75b495c94..8e1e2f7c2f33 100644 --- a/src/providers/postgres/qgspostgresconn.cpp +++ b/src/providers/postgres/qgspostgresconn.cpp @@ -171,6 +171,7 @@ QgsPostgresConn *QgsPostgresConn::connectDb( const QString &conninfo, bool reado { // sharing connection between threads is not safe // See https://github.com/qgis/QGIS/issues/21205 + QgsDebugMsgLevel( QStringLiteral( "refusing to use shared connection as we are not the main thread" ), 2 ); shared = false; }