Ver código fonte

Merge pull request #371 from joedevivo/master

Fixed legacy support for {crash_log, undefined}

Reviewed-by: JeetKunDoug
pull/375/head
Bishop Bors 8 anos atrás
committed by GitHub
pai
commit
1b20b7c34c
1 arquivos alterados com 4 adições e 2 exclusões
  1. +4
    -2
      src/lager_sup.erl

+ 4
- 2
src/lager_sup.erl Ver arquivo

@ -35,8 +35,8 @@ init([]) ->
%% set up the config, is safe even during relups
lager_config:new(),
%% TODO:
%% Always start lager_event as the default and make sure that
%% other gen_event stuff can start up as needed
%% Always start lager_event as the default and make sure that
%% other gen_event stuff can start up as needed
%%
%% Maybe a new API to handle the sink and its policy?
Children = [
@ -69,6 +69,8 @@ determine_rotation_date({ok, Val3}) ->
determine_rotation_date(_) ->
undefined.
decide_crash_log(undefined) ->
[];
decide_crash_log(false) ->
[];
decide_crash_log(File) ->

Carregando…
Cancelar
Salvar