Explorar el Código

ft: 系统报错添加节点名

master
SisMaker hace 1 año
padre
commit
cf779bcf68
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      src/errLogger/lgErrLoggerH.erl

+ 3
- 3
src/errLogger/lgErrLoggerH.erl Ver fichero

@ -63,12 +63,12 @@
true ->
if
is_pid(PidOrMd) ->
eLog:doLogImpl(Severity, PidOrMd, 'Undef', 'Undef', 'Undef', 0, [], Fmt, Args, -1, Sink, safe);
eLog:doLogImpl(Severity, PidOrMd, node(), '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, -1, Sink, safe);
eLog:doLogImpl(Severity, LogPid, node(), '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, -1, Sink, safe)
eLog:doLogImpl(Severity, list_to_pid("<0.0.0>"), node(), 'Undef', 'Undef', 0, [{tag, PidOrMd}], Fmt, Args, -1, Sink, safe)
end,
logged;
_ -> no_log

Cargando…
Cancelar
Guardar