optimized hls av logging

This commit is contained in:
Roman Arutyunyan 2013-01-12 18:13:25 +04:00
parent b6194ed6e6
commit ba23d995d1

View file

@ -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);
}