diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-05 12:24:13 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-05 12:24:13 +0100 |
commit | bd618ec6cc668e82879efa2e298a1d6e032cd8c6 (patch) | |
tree | f78f266c2ea77dc146b7bb4277297db84d2fc4d7 /src/rabbit_error_logger_file_h.erl | |
parent | 8c305c46d4106e6b6e6636ca520bbf00a420afb1 (diff) | |
download | rabbitmq-server-bd618ec6cc668e82879efa2e298a1d6e032cd8c6.tar.gz |
fix taking over from the tty handler
Diffstat (limited to 'src/rabbit_error_logger_file_h.erl')
-rw-r--r-- | src/rabbit_error_logger_file_h.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl index 519aac10..1aca0827 100644 --- a/src/rabbit_error_logger_file_h.erl +++ b/src/rabbit_error_logger_file_h.erl @@ -46,6 +46,9 @@ init({{File, _}, error}) -> %% log rotation init({File, []}) -> init(File); +%% Used only when taking over from the tty handler +init({{File, []}, _}) -> + init(File); init({File, {error_logger, []}}) -> rabbit_misc:ensure_parent_dirs_exist(File), init_file(File, error_logger); |