| 102 | /************************************************************************/ |
| 103 | |
| 104 | void pj_log(PJ_CONTEXT *ctx, int level, const char *fmt, ...) |
| 105 | |
| 106 | { |
| 107 | va_list args; |
| 108 | |
| 109 | if (level > ctx->debug_level) |
| 110 | return; |
| 111 | |
| 112 | va_start(args, fmt); |
| 113 | pj_vlog(ctx, level, nullptr, fmt, args); |
| 114 | va_end(args); |
| 115 | } |
| 116 | |
| 117 | /***************************************************************************************/ |
| 118 | PJ_LOG_LEVEL proj_log_level(PJ_CONTEXT *ctx, PJ_LOG_LEVEL log_level) { |
no test coverage detected