Skip to content
Permalink
Browse files
Fix some non-error debug msgs being shown at level 1
  • Loading branch information
nyalldawson committed Oct 23, 2021
1 parent 961d0b3 commit eb609b196f3da93aced1bca5c1ad8d123c486677
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/symbology/qgssymbollayerutils.cpp
@@ -2126,7 +2126,7 @@ bool QgsSymbolLayerUtils::fillFromSld( QDomElement &element, Qt::BrushStyle &bru
QgsStringMap svgParams = getSvgParameterList( element );
for ( QgsStringMap::iterator it = svgParams.begin(); it != svgParams.end(); ++it )
{
QgsDebugMsg( QStringLiteral( "found SvgParameter %1: %2" ).arg( it.key(), it.value() ) );
QgsDebugMsgLevel( QStringLiteral( "found SvgParameter %1: %2" ).arg( it.key(), it.value() ), 2 );

if ( it.key() == QLatin1String( "fill" ) )
color = QColor( it.value() );
@@ -2272,7 +2272,7 @@ bool QgsSymbolLayerUtils::lineFromSld( QDomElement &element,
QgsStringMap svgParams = getSvgParameterList( element );
for ( QgsStringMap::iterator it = svgParams.begin(); it != svgParams.end(); ++it )
{
QgsDebugMsg( QStringLiteral( "found SvgParameter %1: %2" ).arg( it.key(), it.value() ) );
QgsDebugMsgLevel( QStringLiteral( "found SvgParameter %1: %2" ).arg( it.key(), it.value() ), 2 );

if ( it.key() == QLatin1String( "stroke" ) )
{
@@ -2356,7 +2356,7 @@ bool QgsSymbolLayerUtils::lineFromSld( QDomElement &element,
}
else
{
QgsDebugMsg( QStringLiteral( "custom dash pattern required but not provided. Using default dash pattern." ) );
QgsDebugMsgLevel( QStringLiteral( "custom dash pattern required but not provided. Using default dash pattern." ), 2 );
penStyle = Qt::DashLine;
}
}
@@ -2612,7 +2612,7 @@ bool QgsSymbolLayerUtils::wellKnownMarkerFromSld( QDomElement &element,
if ( !wellKnownNameElem.isNull() )
{
name = wellKnownNameElem.firstChild().nodeValue();
QgsDebugMsg( "found Mark with well known name: " + name );
QgsDebugMsgLevel( "found Mark with well known name: " + name, 2 );
}

// <Fill>
@@ -3028,7 +3028,7 @@ QgsStringMap QgsSymbolLayerUtils::getSvgParameterList( QDomElement &element )
if ( paramElem.firstChild().nodeType() == QDomNode::ElementNode &&
paramElem.firstChild().localName() == QLatin1String( "Literal" ) )
{
QgsDebugMsg( paramElem.firstChild().localName() );
QgsDebugMsgLevel( paramElem.firstChild().localName(), 3 );
value = paramElem.firstChild().firstChild().nodeValue();
}
else
@@ -4612,7 +4612,7 @@ QList<double> QgsSymbolLayerUtils::prettyBreaks( double minimum, double maximum,
{
end = end + 1;
}
QgsDebugMsg( QStringLiteral( "pretty classes: %1" ).arg( end ) );
QgsDebugMsgLevel( QStringLiteral( "pretty classes: %1" ).arg( end ), 3 );

// If we don't have quite enough labels, extend the range out
// to make more (these labels are beyond the data :()

0 comments on commit eb609b1

Please sign in to comment.