mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-01 06:09:32 +02:00
improved logging
This commit is contained in:
parent
c89459b784
commit
b62651efbd
|
@ -473,9 +473,9 @@ ngx_rtmp_exec_child_dead(ngx_event_t *ev)
|
||||||
|
|
||||||
e = dummy_conn->data;
|
e = dummy_conn->data;
|
||||||
|
|
||||||
ngx_log_debug2(NGX_LOG_DEBUG_RTMP, e->log, 0,
|
ngx_log_error(NGX_LOG_INFO, e->log, 0,
|
||||||
"exec: child %ui exited; %s", (ngx_int_t) e->pid,
|
"exec: child %ui exited; %s", (ngx_int_t) e->pid,
|
||||||
e->respawn_timeout == NGX_CONF_UNSET_MSEC ? "respawning" :
|
e->respawn_timeout == NGX_CONF_UNSET_MSEC ? "respawning" :
|
||||||
"ignoring");
|
"ignoring");
|
||||||
|
|
||||||
ngx_rtmp_exec_kill(e, 0);
|
ngx_rtmp_exec_kill(e, 0);
|
||||||
|
@ -515,9 +515,8 @@ ngx_rtmp_exec_kill(ngx_rtmp_exec_t *e, ngx_int_t kill_signal)
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, e->log, 0,
|
ngx_log_error(NGX_LOG_INFO, e->log, 0,
|
||||||
"exec: terminating child %ui",
|
"exec: terminating child %ui", (ngx_int_t) e->pid);
|
||||||
(ngx_int_t) e->pid);
|
|
||||||
|
|
||||||
e->active = 0;
|
e->active = 0;
|
||||||
close(e->pipefd);
|
close(e->pipefd);
|
||||||
|
@ -555,8 +554,8 @@ ngx_rtmp_exec_run(ngx_rtmp_exec_t *e)
|
||||||
|
|
||||||
ec = e->conf;
|
ec = e->conf;
|
||||||
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, e->log, 0,
|
ngx_log_error(NGX_LOG_INFO, e->log, 0,
|
||||||
"exec: starting child '%V'", &ec->cmd);
|
"exec: starting child '%V'", &ec->cmd);
|
||||||
|
|
||||||
if (e->active) {
|
if (e->active) {
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, e->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, e->log, 0,
|
||||||
|
|
Loading…
Reference in a new issue