Explorar el Código

Fix #49 some more, thanks awesometown for the heads up

pull/51/head
Andrew Thompson hace 13 años
padre
commit
bf0a19cc14
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      src/lager.erl

+ 3
- 2
src/lager.erl Ver fichero

@ -128,8 +128,9 @@ trace_file(File, Filter, Level) ->
Res = case lists:member({lager_file_backend, File}, Handlers) of
false ->
%% install the handler
supervisor:start_child(lager_handler_watcher_sup,
[lager_event, {lager_file_backend, File}, {File, none}]);
{ok, _} = supervisor:start_child(lager_handler_watcher_sup,
[lager_event, {lager_file_backend, File}, {File, none}]),
ok;
_ ->
ok
end,

Cargando…
Cancelar
Guardar