mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-29 00:18:58 +02:00
Use debug level for debug messages
This commit is contained in:
parent
c206cd7978
commit
dc5add30a8
|
@ -603,9 +603,10 @@ ngx_rtmp_create_redirect_status(ngx_rtmp_session_t *s, char *callMethod, char *d
|
||||||
static double dtrans;
|
static double dtrans;
|
||||||
static double dcode;
|
static double dcode;
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create redirect status: got data");
|
"create redirect status: got data");
|
||||||
ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,
|
|
||||||
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create redirect status: method='%s', status code='%s' level='%s' "
|
"create redirect status: method='%s', status code='%s' level='%s' "
|
||||||
"ex.code=%ui ex.redirect='%s'", callMethod,
|
"ex.code=%ui ex.redirect='%s'", callMethod,
|
||||||
"NetConnection.Connect.Rejected", "error", 302, to_url.data);
|
"NetConnection.Connect.Rejected", "error", 302, to_url.data);
|
||||||
|
@ -661,7 +662,7 @@ ngx_rtmp_create_redirect_status(ngx_rtmp_session_t *s, char *callMethod, char *d
|
||||||
sizeof(out_inf) },
|
sizeof(out_inf) },
|
||||||
};
|
};
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create redirect status: set structure data");
|
"create redirect status: set structure data");
|
||||||
|
|
||||||
out_elts[0].data = callMethod;
|
out_elts[0].data = callMethod;
|
||||||
|
@ -707,7 +708,7 @@ ngx_rtmp_create_close_method(ngx_rtmp_session_t *s, char *methodName)
|
||||||
&dtrans, 0 },
|
&dtrans, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create close method: set structure data");
|
"create close method: set structure data");
|
||||||
|
|
||||||
out_elts[0].data = methodName;
|
out_elts[0].data = methodName;
|
||||||
|
@ -773,7 +774,7 @@ ngx_rtmp_create_fcpublish(ngx_rtmp_session_t *s, u_char *desc)
|
||||||
sizeof(out_inf) },
|
sizeof(out_inf) },
|
||||||
};
|
};
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_DEBUG, s->connection->log, 0,
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create: fcpublish - set structure data");
|
"create: fcpublish - set structure data");
|
||||||
|
|
||||||
out_inf[2].data = desc;
|
out_inf[2].data = desc;
|
||||||
|
@ -840,7 +841,7 @@ ngx_rtmp_create_fcunpublish(ngx_rtmp_session_t *s, u_char *desc)
|
||||||
sizeof(out_inf) },
|
sizeof(out_inf) },
|
||||||
};
|
};
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_DEBUG, s->connection->log, 0,
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create: fcunpublish - set structure data");
|
"create: fcunpublish - set structure data");
|
||||||
|
|
||||||
out_inf[2].data = desc;
|
out_inf[2].data = desc;
|
||||||
|
@ -916,7 +917,7 @@ ngx_rtmp_create_fi(ngx_rtmp_session_t *s)
|
||||||
errfl = ngx_gettimeofday(&tv);
|
errfl = ngx_gettimeofday(&tv);
|
||||||
|
|
||||||
if (errfl) {
|
if (errfl) {
|
||||||
ngx_log_error(NGX_LOG_DEBUG, s->connection->log, 0,
|
ngx_log_debug(NGX_LOG_DEBUG, s->connection->log, 0,
|
||||||
"create: fi - can't get time!");
|
"create: fi - can't get time!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue