diff options
-rw-r--r-- | src/rabbit_error_logger_file_h.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl index be842739..5f9a21e9 100644 --- a/src/rabbit_error_logger_file_h.erl +++ b/src/rabbit_error_logger_file_h.erl @@ -87,8 +87,10 @@ safe_handle_event(HandleEvent, Event, State) -> HandleEvent(Event, State) catch _:Error -> - io:format("Event crashed log handler:~n~P~n~P~n", - [Event, 30, Error, 30]), + io:format( + "Error in log handler~n====================~n" + "Event: ~P~nError: ~P~nStack trace: ~p~n~n", + [Event, 30, Error, 30, erlang:get_stacktrace()]), {ok, State} end. |