From 90875d7616facf04a1836be833fb810142f3d8e1 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 25 Dec 2019 10:45:20 +0100 Subject: Modify verbosity level of some debug/trace messages - unitconvert, ell_set and helmert were using debug level, which is too verbose. Using trace instead - proj_trans() was using trace to indicate the operation it selects. Changing it to debug --- src/4D_api.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/4D_api.cpp') diff --git a/src/4D_api.cpp b/src/4D_api.cpp index 127ca71e..087cac5c 100644 --- a/src/4D_api.cpp +++ b/src/4D_api.cpp @@ -253,9 +253,11 @@ similarly, but prefers the 2D resp. 3D interfaces if available. const auto& alt = P->alternativeCoordinateOperations[iBest]; if( P->iCurCoordOp != iBest ) { - std::string msg("Using coordinate operation "); - msg += alt.name; - pj_log(P->ctx, PJ_LOG_TRACE, msg.c_str()); + if (proj_log_level(P->ctx, PJ_LOG_TELL) >= PJ_LOG_DEBUG) { + std::string msg("Using coordinate operation "); + msg += alt.name; + pj_log(P->ctx, PJ_LOG_DEBUG, msg.c_str()); + } P->iCurCoordOp = iBest; } PJ_COORD res = direction == PJ_FWD ? @@ -263,7 +265,7 @@ similarly, but prefers the 2D resp. 3D interfaces if available. if( res.xyzt.x != HUGE_VAL ) { return res; } - pj_log(P->ctx, PJ_LOG_TRACE, + pj_log(P->ctx, PJ_LOG_DEBUG, "Did not result in valid result. " "Attempting a retry with another operation."); if( iRetry == N_MAX_RETRY ) { @@ -290,9 +292,11 @@ similarly, but prefers the 2D resp. 3D interfaces if available. if( coordOperation ) { if( coordOperation->gridsNeeded(dbContext).empty() ) { if( P->iCurCoordOp != i ) { - std::string msg("Using coordinate operation "); - msg += alt.name; - pj_log(P->ctx, PJ_LOG_TRACE, msg.c_str()); + if (proj_log_level(P->ctx, PJ_LOG_TELL) >= PJ_LOG_DEBUG) { + std::string msg("Using coordinate operation "); + msg += alt.name; + pj_log(P->ctx, PJ_LOG_DEBUG, msg.c_str()); + } P->iCurCoordOp = i; } if( direction == PJ_FWD ) { -- cgit v1.2.3