diff options
| -rw-r--r-- | src/rabbit_error_logger_file_h.erl | 4 | ||||
| -rw-r--r-- | src/rabbit_sasl_report_file_h.erl | 4 |
2 files changed, 8 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, []}) -> diff --git a/src/rabbit_sasl_report_file_h.erl b/src/rabbit_sasl_report_file_h.erl index eaf9bc09fc..3374d63d0b 100644 --- a/src/rabbit_sasl_report_file_h.erl +++ b/src/rabbit_sasl_report_file_h.erl @@ -46,6 +46,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 %% doing any log rotation init({File, []}) -> |
