summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2008-09-04 14:02:11 +0100
committerHubert Plociniczak <hubert@lshift.net>2008-09-04 14:02:11 +0100
commit6926865c7c5ca7dac6be8a78ece469add7b14b92 (patch)
tree26648961f7f705f0bbc14a6c422307e1602669dd
parent61dfd8b50862e44ec9f667690dfa082d3c887c70 (diff)
downloadrabbitmq-server-6926865c7c5ca7dac6be8a78ece469add7b14b92.tar.gz
Perform standard handler installation when original
handler was not installed correcly or terminated with an error.
-rw-r--r--src/rabbit_error_logger_file_h.erl4
-rw-r--r--src/rabbit_sasl_report_file_h.erl4
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 30af2f7f..d67b02ef 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 eaf9bc09..3374d63d 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, []}) ->