From 3d951d66654aff7df1d5dd33f5e3187698fd50b0 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Wed, 16 Feb 2022 10:09:02 +0800 Subject: [PATCH] =?UTF-8?q?ft=EF=BC=9A=20=E4=BB=A3=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eLog.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ->