Skip to content

Commit 37df792

Browse files
committed
fix source path stripping in debug messages
1 parent cb5c4e9 commit 37df792

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/qgslogger.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ int QgsLogger::debugLevel()
181181
{
182182
if ( sPrefixLength == -1 )
183183
{
184-
sPrefixLength = sizeof( CMAKE_SOURCE_DIR ) + 1;
184+
sPrefixLength = sizeof( CMAKE_SOURCE_DIR );
185+
if( CMAKE_SOURCE_DIR[sPrefixLength-1] == '/' )
186+
sPrefixLength++;
185187
}
186188

187189
if ( sDebugLevel == -999 )

0 commit comments

Comments
 (0)