Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log more things on dump crash.

  • Loading branch information...
commit c87fcc723ee6351c460c6cbb035fecfb712770d0 1 parent d11544b
@archaelus authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/enet_if_dump.erl
View
5 src/enet_if_dump.erl
@@ -105,8 +105,9 @@ print(Info, #state{print=Format}) ->
error_logger:info_msg(Fmt, Args)
catch
C:E ->
- error_logger:info_msg("Crashed ~p:~p",
- [C,E])
+ error_logger:info_msg("Crashed ~p:~p~nStack: ~p~nInfo: ~p~n",
+ [C,E,
+ erlang:get_stacktrace(), Info])
end.
format(time, _Info, {Fmt, Args}) ->
Please sign in to comment.
Something went wrong with that request. Please try again.