diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-17 16:44:01 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-08-17 16:44:01 +0100 |
commit | e619376a2f11c14096ede5ae488c4309d658c2e4 (patch) | |
tree | 306677955a5e0f444b9a6af367fd4eeef4b6b1a6 /src/rabbit.erl | |
parent | 49ad7b39aceeb8d11da5fc0acd688a30ff3600e8 (diff) | |
download | rabbitmq-server-e619376a2f11c14096ede5ae488c4309d658c2e4.tar.gz |
tests pass
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r-- | src/rabbit.erl | 5 |
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, |