diff options
| author | Thomas Knudsen <busstoptaktik@users.noreply.github.com> | 2017-11-28 18:34:02 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-28 18:34:02 +1300 |
| commit | 1c1d04b45d76366f54e104f9346879fd48bfde8e (patch) | |
| tree | 28b9812adef7549676de8bd48f8c8aa44eb7adfb /src/pj_internal.c | |
| parent | 8c6fe8b673c9876e7301d4a890403a931540c17c (diff) | |
| download | PROJ-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_internal.c')
| -rw-r--r-- | src/pj_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_internal.c b/src/pj_internal.c index efa9bd1f..8a5d2d15 100644 --- a/src/pj_internal.c +++ b/src/pj_internal.c @@ -183,7 +183,7 @@ enum proj_log_level proj_log_level (PJ_CONTEXT *ctx, enum proj_log_level log_lev ctx = pj_get_default_ctx(); if (0==ctx) return PJ_LOG_TELL; - previous = ctx->debug_level; + previous = abs (ctx->debug_level); if (PJ_LOG_TELL==log_level) return previous; ctx->debug_level = log_level; |
