Browse Source

ft: 代码修改

master
SisMaker 3 years ago
parent
commit
f34d60faa3
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/errLogger/lgErrLoggerH.erl

+ 6
- 6
src/errLogger/lgErrLoggerH.erl View File

@ -45,12 +45,12 @@
true ->
if
is_pid(PidOrMd) ->
eLog:doLogImpl(Severity, PidOrMd, 'Undef', 'Undef', 'Undef', 0, [], Msg, [], 0, Sink, safe);
eLog:doLogImpl(Severity, PidOrMd, 'Undef', 'Undef', 'Undef', 0, [], Msg, [], -1, Sink, safe);
is_list(PidOrMd) ->
{_, LogPid} = lists:keyfind(pid, 1, PidOrMd),
eLog:doLogImpl(Severity, LogPid, 'Undef', 'Undef', 'Undef', 0, lists:keydelete(pid, 1, PidOrMd), Msg, [], 0, Sink, safe);
eLog:doLogImpl(Severity, LogPid, 'Undef', 'Undef', 'Undef', 0, lists:keydelete(pid, 1, PidOrMd), Msg, [], -1, Sink, safe);
true ->
eLog:doLogImpl(Severity, list_to_pid("<0.0.0>"), 'Undef', 'Undef', 'Undef', 0, [], Msg, [{tag, PidOrMd}], 0, Sink, safe)
eLog:doLogImpl(Severity, list_to_pid("<0.0.0>"), 'Undef', 'Undef', 'Undef', 0, [], Msg, [{tag, PidOrMd}], -1, Sink, safe)
end,
logged;
_ -> no_log
@ -63,12 +63,12 @@
true ->
if
is_pid(PidOrMd) ->
eLog:doLogImpl(Severity, PidOrMd, 'Undef', 'Undef', 'Undef', 0, [], Fmt, Args, 0, Sink, safe);
eLog:doLogImpl(Severity, PidOrMd, 'Undef', 'Undef', 'Undef', 0, [], Fmt, Args, -1, Sink, safe);
is_list(PidOrMd) ->
{_, LogPid} = lists:keyfind(pid, 1, PidOrMd),
eLog:doLogImpl(Severity, LogPid, 'Undef', 'Undef', 'Undef', 0, lists:keydelete(pid, 1, PidOrMd), Fmt, Args, 0, Sink, safe);
eLog:doLogImpl(Severity, LogPid, 'Undef', 'Undef', 'Undef', 0, lists:keydelete(pid, 1, PidOrMd), Fmt, Args, -1, Sink, safe);
true ->
eLog:doLogImpl(Severity, list_to_pid("<0.0.0>"), 'Undef', 'Undef', 'Undef', 0, [{tag, PidOrMd}], Fmt, Args, 0, Sink, safe)
eLog:doLogImpl(Severity, list_to_pid("<0.0.0>"), 'Undef', 'Undef', 'Undef', 0, [{tag, PidOrMd}], Fmt, Args, -1, Sink, safe)
end,
logged;
_ -> no_log

Loading…
Cancel
Save