Skip to content
Permalink
Browse files
Merge pull request #74 from gomoripeti/trace_fmt_extra_msg
Support extra message in traces
  • Loading branch information
ferd committed Jun 15, 2019
2 parents 02f8fc8 + 0c077e4 commit 1ddebb6bdaa2ebe94e761ad7435f5cd61480d3a5
Showing 1 changed file with 3 additions and 0 deletions.
@@ -525,6 +525,9 @@ format(TraceMsg) ->
%% {trace, Pid, call, {M, F, Args}}
{call, [{M,F,Args}]} ->
{"~p:~p~s", [M,F,format_args(Args)]};
%% {trace, Pid, call, {M, F, Args}, Msg}
{call, [{M,F,Args}, Msg]} ->
{"~p:~p~s ~s", [M,F,format_args(Args), format_trace_output(Msg)]};
%% {trace, Pid, return_to, {M, F, Arity}}
{return_to, [{M,F,Arity}]} ->
{" '--> ~p:~p/~p", [M,F,Arity]};

0 comments on commit 1ddebb6

Please sign in to comment.