disabled logging relay connections

This commit is contained in:
Roman Arutyunyan 2013-01-13 22:25:37 +04:00
parent 77860c0036
commit 406d3a9527

View file

@ -806,7 +806,7 @@ ngx_rtmp_log_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
{
ngx_rtmp_log_ctx_t *ctx;
if (s->auto_pushed) {
if (s->auto_pushed || s->relay) {
goto next;
}
@ -827,7 +827,7 @@ ngx_rtmp_log_play(ngx_rtmp_session_t *s, ngx_rtmp_play_t *v)
{
ngx_rtmp_log_ctx_t *ctx;
if (s->auto_pushed) {
if (s->auto_pushed || s->relay) {
goto next;
}
@ -896,7 +896,7 @@ ngx_rtmp_log_disconnect(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
u_char *line, *p;
size_t len;
if (s->auto_pushed) {
if (s->auto_pushed || s->relay) {
return NGX_OK;
}