提交 a57669c3 authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-4407 --resolve

上级 d2b940d9
...@@ -130,6 +130,7 @@ static switch_status_t set_json_cdr_log_dirs() ...@@ -130,6 +130,7 @@ static switch_status_t set_json_cdr_log_dirs()
if ((path = switch_safe_strdup(globals.base_log_dir))) { if ((path = switch_safe_strdup(globals.base_log_dir))) {
switch_thread_rwlock_wrlock(globals.log_path_lock); switch_thread_rwlock_wrlock(globals.log_path_lock);
switch_safe_free(globals.log_dir); switch_safe_free(globals.log_dir);
switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool);
globals.log_dir = path; globals.log_dir = path;
switch_thread_rwlock_unlock(globals.log_path_lock); switch_thread_rwlock_unlock(globals.log_path_lock);
} else { } else {
...@@ -168,6 +169,7 @@ static switch_status_t set_json_cdr_log_dirs() ...@@ -168,6 +169,7 @@ static switch_status_t set_json_cdr_log_dirs()
if ((path = switch_safe_strdup(globals.base_err_log_dir[err_dir_index]))) { if ((path = switch_safe_strdup(globals.base_err_log_dir[err_dir_index]))) {
switch_thread_rwlock_wrlock(globals.log_path_lock); switch_thread_rwlock_wrlock(globals.log_path_lock);
switch_safe_free(globals.err_log_dir[err_dir_index]); switch_safe_free(globals.err_log_dir[err_dir_index]);
switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool);
globals.err_log_dir[err_dir_index] = path; globals.err_log_dir[err_dir_index] = path;
switch_thread_rwlock_unlock(globals.log_path_lock); switch_thread_rwlock_unlock(globals.log_path_lock);
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论