mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-22 22:15:06 +02:00
test debug logging
This commit is contained in:
parent
0eb32ae1ca
commit
43ececd070
|
@ -1959,6 +1959,7 @@ ngx_rtmp_hls_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
|
|||
spath.len = p - path;
|
||||
|
||||
nentries++;
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, ngx_cycle->log, 0, "hls: cleanup test 1 '%s'", path);
|
||||
|
||||
if (!dir.valid_info && ngx_de_info(path, &dir) == NGX_FILE_ERROR) {
|
||||
ngx_log_error(NGX_LOG_CRIT, ngx_cycle->log, ngx_errno,
|
||||
|
@ -1967,12 +1968,15 @@ ngx_rtmp_hls_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
|
|||
|
||||
continue;
|
||||
}
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, ngx_cycle->log, 0, "hls: cleanup test 2 '%s'", path);
|
||||
|
||||
if (ngx_de_is_dir(&dir)) {
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, ngx_cycle->log, 0, "hls: cleanup test 3 '%s'", path);
|
||||
if (ngx_rtmp_hls_cleanup_dir(&spath, playlen) == 0) {
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, ngx_cycle->log, 0,
|
||||
"hls: cleanup dir '%V'", &name);
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, ngx_cycle->log, 0, "hls: cleanup test 4 '%s'", path);
|
||||
|
||||
if (ngx_delete_dir(path) == NGX_FILE_ERROR) {
|
||||
ngx_log_error(NGX_LOG_ERR, ngx_cycle->log, ngx_errno,
|
||||
|
|
Loading…
Reference in a new issue