From 406d3a9527e08ea148e7c10ffa4009e0e5070b11 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Sun, 13 Jan 2013 22:25:37 +0400 Subject: [PATCH] disabled logging relay connections --- ngx_rtmp_log_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ngx_rtmp_log_module.c b/ngx_rtmp_log_module.c index 1e0f4c1..7bef250 100644 --- a/ngx_rtmp_log_module.c +++ b/ngx_rtmp_log_module.c @@ -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; }