@@ -703,7 +703,7 @@ void QgsMssqlProvider::UpdateStatistics( bool estimate ) const
703
703
!query.value ( 2 ).isNull () ||
704
704
!query.value ( 3 ).isNull () ) )
705
705
{
706
- QgsDebugMsg ( QStringLiteral ( " Found extents in spatial index" ) );
706
+ QgsDebugMsgLevel ( QStringLiteral ( " Found extents in spatial index" ), 2 );
707
707
mExtent .setXMinimum ( query.value ( 0 ).toDouble () );
708
708
mExtent .setYMinimum ( query.value ( 1 ).toDouble () );
709
709
mExtent .setXMaximum ( query.value ( 2 ).toDouble () );
@@ -2121,7 +2121,7 @@ bool QgsMssqlProviderMetadata::saveStyle( const QString &uri, const QString &qml
2121
2121
}
2122
2122
if ( query.isActive () && query.next () && query.value ( 0 ).toInt () == 0 )
2123
2123
{
2124
- QgsDebugMsg ( QStringLiteral ( " Need to create styles table" ) );
2124
+ QgsDebugMsgLevel ( QStringLiteral ( " Need to create styles table" ), 2 );
2125
2125
bool execOk = query.exec ( QString ( " CREATE TABLE [dbo].[layer_styles]("
2126
2126
" [id] int IDENTITY(1,1) PRIMARY KEY,"
2127
2127
" [f_table_catalog] [varchar](1024) NULL,"
@@ -2153,7 +2153,7 @@ bool QgsMssqlProviderMetadata::saveStyle( const QString &uri, const QString &qml
2153
2153
uiFileColumn = QStringLiteral ( " ,ui" );
2154
2154
uiFileValue = QStringLiteral ( " ,XMLPARSE(DOCUMENT %1)" ).arg ( uiFileContent );
2155
2155
}
2156
- QgsDebugMsg ( QStringLiteral ( " Ready to insert new style" ) );
2156
+ QgsDebugMsgLevel ( QStringLiteral ( " Ready to insert new style" ), 2 );
2157
2157
// Note: in the construction of the INSERT and UPDATE strings the qmlStyle and sldStyle values
2158
2158
// can contain user entered strings, which may themselves include %## values that would be
2159
2159
// replaced by the QString.arg function. To ensure that the final SQL string is not corrupt these
@@ -2208,7 +2208,7 @@ bool QgsMssqlProviderMetadata::saveStyle( const QString &uri, const QString &qml
2208
2208
return false ;
2209
2209
}
2210
2210
2211
- QgsDebugMsg ( QStringLiteral ( " Updating styles" ) );
2211
+ QgsDebugMsgLevel ( QStringLiteral ( " Updating styles" ), 2 );
2212
2212
sql = QString ( " UPDATE layer_styles "
2213
2213
" SET useAsDefault=%1"
2214
2214
" ,styleQML=%2"
@@ -2246,8 +2246,8 @@ bool QgsMssqlProviderMetadata::saveStyle( const QString &uri, const QString &qml
2246
2246
sql = QStringLiteral ( " %1; %2;" ).arg ( removeDefaultSql, sql );
2247
2247
}
2248
2248
2249
- QgsDebugMsg ( QStringLiteral ( " Inserting styles" ) );
2250
- QgsDebugMsg ( sql );
2249
+ QgsDebugMsgLevel ( QStringLiteral ( " Inserting styles" ), 2 );
2250
+ QgsDebugMsgLevel ( sql, 2 );
2251
2251
bool execOk = query.exec ( sql );
2252
2252
2253
2253
if ( !execOk )
@@ -2352,7 +2352,7 @@ int QgsMssqlProviderMetadata::listStyles( const QString &uri, QStringList &ids,
2352
2352
int numberOfRelatedStyles = 0 ;
2353
2353
while ( query.isActive () && query.next () )
2354
2354
{
2355
- QgsDebugMsg ( query.value ( 1 ).toString () );
2355
+ QgsDebugMsgLevel ( query.value ( 1 ).toString (), 2 );
2356
2356
ids.append ( query.value ( 0 ).toString () );
2357
2357
names.append ( query.value ( 1 ).toString () );
2358
2358
descriptions.append ( query.value ( 2 ).toString () );
@@ -2366,14 +2366,14 @@ int QgsMssqlProviderMetadata::listStyles( const QString &uri, QStringList &ids,
2366
2366
.arg ( QgsMssqlProvider::quotedValue ( dsUri.schema () ) )
2367
2367
.arg ( QgsMssqlProvider::quotedValue ( dsUri.table () ) )
2368
2368
.arg ( QgsMssqlProvider::quotedValue ( dsUri.geometryColumn () ) );
2369
- QgsDebugMsg ( selectOthersQuery );
2369
+ QgsDebugMsgLevel ( selectOthersQuery, 2 );
2370
2370
queryOk = query.exec ( selectOthersQuery );
2371
2371
if ( !queryOk )
2372
2372
{
2373
2373
QgsDebugMsg ( query.lastError ().text () );
2374
2374
return -1 ;
2375
2375
}
2376
- QgsDebugMsg ( query.isActive () && query.size () );
2376
+ QgsDebugMsgLevel ( query.isActive () && query.size (), 2 );
2377
2377
while ( query.next () )
2378
2378
{
2379
2379
ids.append ( query.value ( 0 ).toString () );
0 commit comments