summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index a4b01695..5367c6fb 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -453,7 +453,10 @@ ensure_working_log_handlers() ->
sasl_report_tty_h,
log_location(sasl),
Handlers),
- error_logger:delete_report_handler(error_logger_tty_h),
+ case log_location(kernel) of
+ tty -> ok;
+ _ -> error_logger:delete_report_handler(error_logger_tty_h)
+ end,
ok.
ensure_working_log_handler(OldFHandler, NewFHandler, TTYHandler, LogLocation,