/
| 102 | |
| 103 | /***************************************************************************************/ |
| 104 | PJ_LOG_LEVEL proj_log_level (PJ_CONTEXT *ctx, PJ_LOG_LEVEL log_level) { |
| 105 | /**************************************************************************************** |
| 106 | Set logging level 0-3. Higher number means more debug info. 0 turns it off |
| 107 | ****************************************************************************************/ |
| 108 | PJ_LOG_LEVEL previous; |
| 109 | if (nullptr==ctx) |
| 110 | ctx = pj_get_default_ctx(); |
| 111 | if (nullptr==ctx) |
| 112 | return PJ_LOG_TELL; |
| 113 | previous = static_cast<PJ_LOG_LEVEL>(abs (ctx->debug_level)); |
| 114 | if (PJ_LOG_TELL==log_level) |
| 115 | return previous; |
| 116 | ctx->debug_level = log_level; |
| 117 | return previous; |
| 118 | } |
| 119 | |
| 120 | /*****************************************************************************/ |
| 121 | static std::string add_short_name_prefix(const PJ* P, const char* fmt) |
no test coverage detected