diff options
author | Hubert Plociniczak <hubert@lshift.net> | 2008-09-04 14:02:11 +0100 |
---|---|---|
committer | Hubert Plociniczak <hubert@lshift.net> | 2008-09-04 14:02:11 +0100 |
commit | c71470026d31a9bc5c60c3e00dcd88635d790370 (patch) | |
tree | 26648961f7f705f0bbc14a6c422307e1602669dd /src/rabbit_error_logger_file_h.erl | |
parent | f584600a7cd0c3f48c43aa8d907e2e3883f0e588 (diff) | |
download | rabbitmq-server-git-c71470026d31a9bc5c60c3e00dcd88635d790370.tar.gz |
Perform standard handler installation when original
handler was not installed correcly or terminated
with an error.
Diffstat (limited to 'src/rabbit_error_logger_file_h.erl')
-rw-r--r-- | src/rabbit_error_logger_file_h.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl index 30af2f7f75..d67b02ef42 100644 --- a/src/rabbit_error_logger_file_h.erl +++ b/src/rabbit_error_logger_file_h.erl @@ -45,6 +45,10 @@ init({{File, Suffix}, []}) -> [File, [File, Suffix], Error]) end, init(File); +%% Used only when swapping handlers and the original handler +%% failed to terminate or was never installed +init({{File, _}, error}) -> + init(File); %% Used only when swapping handlers without performing %% log rotation init({File, []}) -> |