aboutsummaryrefslogtreecommitdiff
path: root/src/4D_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-12-25 10:45:20 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-12-25 10:45:20 +0100
commit90875d7616facf04a1836be833fb810142f3d8e1 (patch)
treef5c2932f3c58da003ecffb2ba86b69cfdd7e4ff7 /src/4D_api.cpp
parent41aa90d57e4cdcca2e6337d31be596c8beb1a945 (diff)
downloadPROJ-90875d7616facf04a1836be833fb810142f3d8e1.tar.gz
PROJ-90875d7616facf04a1836be833fb810142f3d8e1.zip
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
Diffstat (limited to 'src/4D_api.cpp')
-rw-r--r--src/4D_api.cpp18
1 files changed, 11 insertions, 7 deletions
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 ) {