Explorar el Código

Backport field name change from 3.x branch

See #334
pull/339/head
Mark Allen hace 9 años
padre
commit
9872869814
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      src/error_logger_lager_h.erl

+ 9
- 1
src/error_logger_lager_h.erl Ver fichero

@ -287,7 +287,15 @@ format_offender(Off) ->
MFArgs ->
%% regular supervisor
MFA = format_mfa(MFArgs),
Name = get_value(name, Off),
%% In 2014 the error report changed from `name' to
%% `id', so try that first.
Name = case get_value(id, Off) of
undefined ->
get_value(name, Off);
Id ->
Id
end,
io_lib:format("~p started with ~s at ~w",
[Name, MFA, get_value(pid, Off)])
end.

Cargando…
Cancelar
Guardar