mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-19 17:41:08 +02:00
optimized hls av logging
This commit is contained in:
parent
b6194ed6e6
commit
ba23d995d1
|
@ -43,7 +43,13 @@ ngx_rtmp_hls_av_log_callback(void* avcl, int level, const char* fmt,
|
|||
}
|
||||
}
|
||||
|
||||
ngx_log_error_core(NGX_LOG_ERR, ngx_rtmp_hls_log, 0, "hls: av: %s", buf);
|
||||
if (level <= AV_LOG_ERROR) {
|
||||
ngx_log_error_core(NGX_LOG_ERR, ngx_rtmp_hls_log, 0, "hls: av: %s",
|
||||
buf);
|
||||
return;
|
||||
}
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, ngx_rtmp_hls_log, 0, "hls: av: %s", buf);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue