diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-22 12:08:33 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-22 12:08:33 +0100 |
commit | 7a91b6262b2616a2a394b2395ceb66e4ebf8121e (patch) | |
tree | 258ffcce7240d1c30e357367555d8399434f36a1 /src/rabbit_error_logger_file_h.erl | |
parent | 5a682e5fd6752a596df837d4443893e1b92e0fc3 (diff) | |
parent | f203e2fa14812e82166d6cab72909135a26036fb (diff) | |
download | rabbitmq-server-7a91b6262b2616a2a394b2395ceb66e4ebf8121e.tar.gz |
merge default into bug24332bug24332
Diffstat (limited to 'src/rabbit_error_logger_file_h.erl')
-rw-r--r-- | src/rabbit_error_logger_file_h.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl index f481c21e..7b6e07c1 100644 --- a/src/rabbit_error_logger_file_h.erl +++ b/src/rabbit_error_logger_file_h.erl @@ -33,7 +33,7 @@ %% Used only when swapping handlers in log rotation init({{File, Suffix}, []}) -> - case rabbit_misc:append_file(File, Suffix) of + case rabbit_file:append_file(File, Suffix) of ok -> file:delete(File), ok; {error, Error} -> @@ -54,10 +54,10 @@ init({File, []}) -> init({{File, []}, _}) -> init(File); init({File, {error_logger, Buf}}) -> - rabbit_misc:ensure_parent_dirs_exist(File), + rabbit_file:ensure_parent_dirs_exist(File), init_file(File, {error_logger, Buf}); init(File) -> - rabbit_misc:ensure_parent_dirs_exist(File), + rabbit_file:ensure_parent_dirs_exist(File), init_file(File, []). init_file(File, {error_logger, Buf}) -> |