|
@ -505,13 +505,13 @@ add_trace_to_loglevel_config(Trace, Sink) -> |
|
|
unsafeFormat(Fmt, Args) -> |
|
|
unsafeFormat(Fmt, Args) -> |
|
|
try io_lib:format(Fmt, Args) |
|
|
try io_lib:format(Fmt, Args) |
|
|
catch |
|
|
catch |
|
|
_:_ -> io_lib:format("FORMAT ERROR: ~p ~p", [Fmt, Args]) |
|
|
|
|
|
|
|
|
_:_ -> io_lib:format("FORMAT ERROR SAFE: ~p ~p", [Fmt, Args]) |
|
|
end. |
|
|
end. |
|
|
|
|
|
|
|
|
safeFormat(Fmt, Args, Limit) -> |
|
|
safeFormat(Fmt, Args, Limit) -> |
|
|
try eFmt:formatBin(Fmt, Args, [{charsLimit, Limit}]) |
|
|
try eFmt:formatBin(Fmt, Args, [{charsLimit, Limit}]) |
|
|
catch |
|
|
catch |
|
|
_:_ -> eFmt:formatBin(<<"FORMAT ERROR: ~p ~p">>, [Fmt, Args], [{charsLimit, Limit}]) |
|
|
|
|
|
|
|
|
_:_ -> eFmt:formatBin(<<"FORMAT ERROR UNSAFE: ~p ~p">>, [Fmt, Args], [{charsLimit, Limit}]) |
|
|
end. |
|
|
end. |
|
|
|
|
|
|
|
|
%% @private Print the format string `Fmt' with `Args' without a size limit. |
|
|
%% @private Print the format string `Fmt' with `Args' without a size limit. |
|
|