Merge pull request #74 from gomoripeti/trace_fmt_extra_msg
Support extra message in traces
diff --git a/src/recon_trace.erl b/src/recon_trace.erl
index cfad519..6cd65f2 100644
--- a/src/recon_trace.erl
+++ b/src/recon_trace.erl
@@ -525,6 +525,9 @@
%% {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]};