diff --git a/src/eLog.erl b/src/eLog.erl index c17051a..4ef924e 100644 --- a/src/eLog.erl +++ b/src/eLog.erl @@ -495,9 +495,9 @@ add_trace_to_loglevel_config(Trace, Sink) -> %% arguments. The caller is NOT crashed. unsafeFormat(Fmt, Args) -> - try io_lib:format(Fmt, Args) + try eFmt:formatBin(Fmt, Args) catch - _:_ -> io_lib:format("FORMAT ERROR SAFE: ~p ~p", [Fmt, Args]) + _:_ -> eFmt:formatBin(<<"FORMAT ERROR SAFE: ~p ~p">>, [Fmt, Args]) end. safeFormat(Fmt, Args, Limit) ->