chore: pretty print stacktrace
This commit is contained in:
parent
93bdee80ea
commit
802a7696ff
|
@ -312,12 +312,12 @@ kick_or_kill(Action, ConnMod, Pid) ->
|
||||||
ok;
|
ok;
|
||||||
_ : {timeout, {gen_server, call, _}} ->
|
_ : {timeout, {gen_server, call, _}} ->
|
||||||
?LOG(warning, "session_kick_timeout: ~p, action: ~p, "
|
?LOG(warning, "session_kick_timeout: ~p, action: ~p, "
|
||||||
"stale_channel: ~p",
|
"stale_channel: ~0p",
|
||||||
[Pid, Action, stale_channel_info(Pid)]),
|
[Pid, Action, stale_channel_info(Pid)]),
|
||||||
ok = force_kill(Pid);
|
ok = force_kill(Pid);
|
||||||
_ : Error ->
|
_ : Error ->
|
||||||
?LOG(error, "session_kick_exception: ~p, action: ~p, "
|
?LOG(error, "session_kick_exception: ~p, action: ~p, "
|
||||||
"reason: ~p, stacktrace: ~p, stale_channel: ~p",
|
"reason: ~p, stacktrace: ~0p, stale_channel: ~0p",
|
||||||
[Pid, Action, Error, erlang:get_stacktrace(), stale_channel_info(Pid)]),
|
[Pid, Action, Error, erlang:get_stacktrace(), stale_channel_info(Pid)]),
|
||||||
ok = force_kill(Pid)
|
ok = force_kill(Pid)
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue