MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pj_log_active

Function pj_log_active

src/log.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50/************************************************************************/
51
52bool pj_log_active(PJ_CONTEXT *ctx, int level) {
53 int debug_level = ctx->debug_level;
54 int shutup_unless_errno_set = debug_level < 0;
55
56 /* For negative debug levels, we first start logging when errno is set */
57 if (ctx->last_errno == 0 && shutup_unless_errno_set)
58 return false;
59
60 if (debug_level < 0)
61 debug_level = -debug_level;
62
63 if (level > debug_level)
64 return false;
65 return true;
66}
67
68/************************************************************************/
69/* pj_vlog() */

Callers 2

pj_vlogFunction · 0.85
pj_vgrid_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected