FS-4407 --resolve

This commit is contained in:
Jeff Lenk 2012-07-15 13:38:30 -05:00
parent d2b940d9fc
commit a57669c30d
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,7 @@ static switch_status_t set_json_cdr_log_dirs()
if ((path = switch_safe_strdup(globals.base_log_dir))) {
switch_thread_rwlock_wrlock(globals.log_path_lock);
switch_safe_free(globals.log_dir);
switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, globals.pool);
globals.log_dir = path;
switch_thread_rwlock_unlock(globals.log_path_lock);
} else {
@ -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]))) {
switch_thread_rwlock_wrlock(globals.log_path_lock);
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;
switch_thread_rwlock_unlock(globals.log_path_lock);
} else {