@@ -4120,7 +4120,7 @@ void QgsVectorLayer::readSldLabeling( const QDomNode &node )
4120
4120
// rule has a renderer symbolizer, not a text symbolizer
4121
4121
else if ( ruleChildElem.localName () == QLatin1String ( " TextSymbolizer" ) )
4122
4122
{
4123
- QgsDebugMsg ( QStringLiteral ( " TextSymbolizer element found" ) );
4123
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: TextSymbolizer element found" ), 4 );
4124
4124
hasTextSymbolizer = true ;
4125
4125
}
4126
4126
@@ -4136,15 +4136,15 @@ void QgsVectorLayer::readSldLabeling( const QDomNode &node )
4136
4136
4137
4137
if ( hasRuleBased )
4138
4138
{
4139
- QgsDebugMsg ( QStringLiteral ( " Filter or Min/MaxScaleDenominator element found: need a RuleBasedLabeling" ) );
4139
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: Filter or Min/MaxScaleDenominator element found: need a RuleBasedLabeling" ), 4 );
4140
4140
needRuleBasedLabeling = true ;
4141
4141
}
4142
4142
}
4143
4143
4144
4144
// more rules present, use the RuleRenderer
4145
4145
if ( ruleCount > 1 )
4146
4146
{
4147
- QgsDebugMsg ( QStringLiteral ( " more Rule elements found: need a RuleBasedLabeling" ) );
4147
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: More Rule elements found: need a RuleBasedLabeling" ), 4 );
4148
4148
needRuleBasedLabeling = true ;
4149
4149
}
4150
4150
@@ -4169,7 +4169,7 @@ void QgsVectorLayer::readSldLabeling( const QDomNode &node )
4169
4169
4170
4170
if ( needRuleBasedLabeling )
4171
4171
{
4172
- QgsDebugMsg ( QStringLiteral ( " Info: rule based labeling" ) );
4172
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: rule based labeling" ), 4 );
4173
4173
QgsRuleBasedLabeling::Rule *rootRule = new QgsRuleBasedLabeling::Rule ( nullptr );
4174
4174
while ( !ruleElem.isNull () )
4175
4175
{
@@ -4221,7 +4221,7 @@ void QgsVectorLayer::readSldLabeling( const QDomNode &node )
4221
4221
{
4222
4222
if ( filter->hasParserError () )
4223
4223
{
4224
- QgsDebugMsg ( " parser error: " + filter->parserErrorString () );
4224
+ QgsDebugMsgLevel ( QStringLiteral ( " SLD Filter parsing error: %1 " ). arg ( filter->parserErrorString () ), 3 );
4225
4225
}
4226
4226
else
4227
4227
{
@@ -4263,7 +4263,7 @@ void QgsVectorLayer::readSldLabeling( const QDomNode &node )
4263
4263
}
4264
4264
else
4265
4265
{
4266
- QgsDebugMsg ( QStringLiteral ( " Info: simple labeling" ) );
4266
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: simple labeling" ), 4 );
4267
4267
// retrieve the TextSymbolizer element child node
4268
4268
QDomElement textSymbolizerElem = ruleElem.firstChildElement ( QStringLiteral ( " TextSymbolizer" ) );
4269
4269
QgsPalLayerSettings s;
@@ -4279,7 +4279,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
4279
4279
{
4280
4280
if ( node.localName () != QLatin1String ( " TextSymbolizer" ) )
4281
4281
{
4282
- QgsDebugMsg ( QStringLiteral ( " Not a TextSymbolizer element: %1" ).arg ( node.localName () ) );
4282
+ QgsDebugMsgLevel ( QStringLiteral ( " Not a TextSymbolizer element: %1" ).arg ( node.localName () ), 3 );
4283
4283
return false ;
4284
4284
}
4285
4285
QDomElement textSymbolizerElem = node.toElement ();
@@ -4309,21 +4309,18 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
4309
4309
else
4310
4310
{
4311
4311
QgsDebugMsgLevel ( QStringLiteral ( " SLD label attribute error: %1" ).arg ( exp.evalErrorString () ), 3 );
4312
- QgsDebugMsg ( QStringLiteral ( " SLD label attribute error: %1" ).arg ( exp.evalErrorString () ) );
4313
4312
}
4314
4313
}
4315
4314
}
4316
4315
else
4317
4316
{
4318
4317
QgsDebugMsgLevel ( QStringLiteral ( " Info: PropertyName element not found." ), 4 );
4319
- QgsDebugMsg ( QStringLiteral ( " Info: PropertyName element not found." ) );
4320
4318
return false ;
4321
4319
}
4322
4320
}
4323
4321
else
4324
4322
{
4325
4323
QgsDebugMsgLevel ( QStringLiteral ( " Info: Label element not found." ), 4 );
4326
- QgsDebugMsg ( QStringLiteral ( " Info: Label element not found." ) );
4327
4324
return false ;
4328
4325
}
4329
4326
@@ -4340,7 +4337,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
4340
4337
QgsStringMap fontSvgParams = QgsSymbolLayerUtils::getSvgParameterList ( fontElem );
4341
4338
for ( QgsStringMap::iterator it = fontSvgParams.begin (); it != fontSvgParams.end (); ++it )
4342
4339
{
4343
- QgsDebugMsg ( QStringLiteral ( " found fontSvgParams %1: %2" ).arg ( it.key (), it.value () ) );
4340
+ QgsDebugMsgLevel ( QStringLiteral ( " found fontSvgParams %1: %2" ).arg ( it.key (), it.value () ), 4 );
4344
4341
4345
4342
if ( it.key () == QLatin1String ( " font-family" ) )
4346
4343
{
@@ -4382,7 +4379,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
4382
4379
QgsSymbolLayerUtils::fillFromSld ( fillElem, textBrush, textColor );
4383
4380
if ( textColor.isValid () )
4384
4381
{
4385
- QgsDebugMsg ( QStringLiteral ( " Info: textColor %1." ).arg ( QVariant ( textColor ).toString () ) );
4382
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: textColor %1." ).arg ( QVariant ( textColor ).toString () ), 4 );
4386
4383
format.setColor ( textColor );
4387
4384
}
4388
4385
@@ -4412,7 +4409,7 @@ bool QgsVectorLayer::readSldTextSymbolizer( const QDomNode &node, QgsPalLayerSet
4412
4409
QgsSymbolLayerUtils::fillFromSld ( haloFillElem, bufferBrush, bufferColor );
4413
4410
if ( bufferColor.isValid () )
4414
4411
{
4415
- QgsDebugMsg ( QStringLiteral ( " Info: bufferColor %1." ).arg ( QVariant ( bufferColor ).toString () ) );
4412
+ QgsDebugMsgLevel ( QStringLiteral ( " Info: bufferColor %1." ).arg ( QVariant ( bufferColor ).toString () ), 4 );
4416
4413
bufferSettings.setColor ( bufferColor );
4417
4414
}
4418
4415
}
0 commit comments