Skip to content

Commit

Permalink
Silence noisy proj debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 29, 2022
1 parent 6f8bc19 commit 86c8d13
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core/proj/qgscoordinatetransform_p.cpp
Expand Up @@ -259,7 +259,16 @@ static void proj_logger( void *, int level, const char *message )
#endif
if ( level == PJ_LOG_ERROR )
{
QgsDebugMsg( QString( message ) );
const QString messageString( message );
if ( messageString == QLatin1String( "push: Invalid latitude" ) )
{
// these messages tend to spam the console as they can be repeated 1000s of times
QgsDebugMsgLevel( messageString, 3 );
}
else
{
QgsDebugMsg( messageString );
}
}
else if ( level == PJ_LOG_DEBUG )
{
Expand Down

0 comments on commit 86c8d13

Please sign in to comment.