diff --git a/src/recon_trace.erl b/src/recon_trace.erl index 975f536..62b3b67 100644 --- a/src/recon_trace.erl +++ b/src/recon_trace.erl @@ -393,7 +393,10 @@ formatter(Tracer, IOServer, FormatterFun) -> {'EXIT', Tracer, Reason} -> exit(Reason); TraceMsg -> - io:format(IOServer, FormatterFun(TraceMsg), []), + case FormatterFun(TraceMsg) of + "" -> ok; + Formatted -> io:format(IOServer, Formatted, []) + end, formatter(Tracer, IOServer, FormatterFun) end.