@@ -623,7 +623,7 @@ bool QgsPostgresProvider::nextFeature( QgsFeature& feature )
623
623
QString fetch = QString ( " fetch forward %1 from %2" ).arg ( mFeatureQueueSize ).arg ( cursorName );
624
624
if ( connectionRO->PQsendQuery ( fetch ) == 0 ) // fetch features asynchronously
625
625
{
626
- QgsDebugMsg ( " PQsendQuery failed" );
626
+ QgsLogger::warning ( " PQsendQuery failed" );
627
627
}
628
628
629
629
Result queryResult;
@@ -758,7 +758,7 @@ const QgsField &QgsPostgresProvider::field( int index ) const
758
758
759
759
if ( it == attributeFields.constEnd () )
760
760
{
761
- QgsDebugMsg ( " Field " + QString::number ( index ) + " not found." );
761
+ QgsLogger::warning ( " Field " + QString::number ( index ) + " not found." );
762
762
throw PGFieldNotFound ();
763
763
}
764
764
@@ -924,7 +924,7 @@ bool QgsPostgresProvider::loadFields()
924
924
}
925
925
else
926
926
{
927
- QgsDebugMsg ( " Field " + fieldName + " ignored, because of unsupported type " + fieldTypeName );
927
+ QgsLogger::warning ( " Field " + fieldName + " ignored, because of unsupported type " + fieldTypeName );
928
928
continue ;
929
929
}
930
930
@@ -943,7 +943,7 @@ bool QgsPostgresProvider::loadFields()
943
943
}
944
944
else
945
945
{
946
- QgsDebugMsg ( " Field " + fieldName + " ignored, because of unsupported type type " + fieldTType );
946
+ QgsLogger::warning ( " Field " + fieldName + " ignored, because of unsupported type type " + fieldTType );
947
947
continue ;
948
948
}
949
949
@@ -3307,13 +3307,11 @@ bool QgsPostgresProvider::Conn::PQexecNR( QString query )
3307
3307
if ( errorStatus == PGRES_COMMAND_OK )
3308
3308
return true ;
3309
3309
3310
- #ifdef QGISDEBUG
3311
- QString err = QString ( " Query: %1 returned %2 [%3]" )
3312
- .arg ( query )
3313
- .arg ( errorStatus )
3314
- .arg ( QString::fromUtf8 ( PQresultErrorMessage ( res ) ) );
3315
- QgsDebugMsg ( err );
3316
- #endif
3310
+ QgsLogger::warning ( QString ( " Query: %1 returned %2 [%3]" )
3311
+ .arg ( query )
3312
+ .arg ( errorStatus )
3313
+ .arg ( QString::fromUtf8 ( PQresultErrorMessage ( res ) ) ) );
3314
+
3317
3315
if ( openCursors )
3318
3316
{
3319
3317
QgsPostgresProvider::showMessageBox (
0 commit comments