aboutsummaryrefslogtreecommitdiff
path: root/src/pj_ctx.c
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2017-11-28 18:34:02 +1300
committerGitHub <noreply@github.com>2017-11-28 18:34:02 +1300
commit1c1d04b45d76366f54e104f9346879fd48bfde8e (patch)
tree28b9812adef7549676de8bd48f8c8aa44eb7adfb /src/pj_ctx.c
parent8c6fe8b673c9876e7301d4a890403a931540c17c (diff)
downloadPROJ-1c1d04b45d76366f54e104f9346879fd48bfde8e.tar.gz
PROJ-1c1d04b45d76366f54e104f9346879fd48bfde8e.zip
Enable selective debug printout through negative PROJ_DEBUG values (#689)
* Enable selective debug printout through negative PROJ_DEBUG values
Diffstat (limited to 'src/pj_ctx.c')
-rw-r--r--src/pj_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_ctx.c b/src/pj_ctx.c
index 326249ac..fc52f300 100644
--- a/src/pj_ctx.c
+++ b/src/pj_ctx.c
@@ -84,7 +84,7 @@ projCtx pj_get_default_ctx()
if( getenv("PROJ_DEBUG") != NULL )
{
- if( atoi(getenv("PROJ_DEBUG")) > 0 )
+ if( atoi(getenv("PROJ_DEBUG")) >= -PJ_LOG_DEBUG_MINOR )
default_context.debug_level = atoi(getenv("PROJ_DEBUG"));
else
default_context.debug_level = PJ_LOG_DEBUG_MINOR;