Skip to content

Commit f0aba28

Browse files
committed
Less debug noise when rendering svg files
(cherry-picked from 2bc30c7)
1 parent c1c00c9 commit f0aba28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/symbology/qgssymbollayerutils.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3693,18 +3693,18 @@ QString QgsSymbolLayerUtils::svgSymbolNameToPath( QString name, const QgsPathRes
36933693
svgPath.chop( 1 );
36943694
}
36953695

3696-
QgsDebugMsg( "SvgPath: " + svgPath );
3696+
QgsDebugMsgLevel( "SvgPath: " + svgPath, 3 );
36973697
// Not sure why to lowest dir was used instead of full relative path, it was causing #8664
36983698
//QFileInfo myInfo( name );
36993699
//QString myFileName = myInfo.fileName(); // foo.svg
37003700
//QString myLowestDir = myInfo.dir().dirName();
37013701
//QString myLocalPath = svgPath + QString( myLowestDir.isEmpty() ? "" : '/' + myLowestDir ) + '/' + myFileName;
37023702
QString myLocalPath = svgPath + QDir::separator() + name;
37033703

3704-
QgsDebugMsg( "Alternative svg path: " + myLocalPath );
3704+
QgsDebugMsgLevel( "Alternative svg path: " + myLocalPath, 3 );
37053705
if ( QFile( myLocalPath ).exists() )
37063706
{
3707-
QgsDebugMsg( "Svg found in alternative path" );
3707+
QgsDebugMsgLevel( "Svg found in alternative path", 3 );
37083708
return QFileInfo( myLocalPath ).canonicalFilePath();
37093709
}
37103710
}

0 commit comments

Comments
 (0)