Przeglądaj źródła

Merge pull request #371 from joedevivo/master

Fixed legacy support for {crash_log, undefined}

Reviewed-by: JeetKunDoug
pull/375/head
Bishop Bors 8 lat temu
committed by GitHub
rodzic
commit
1b20b7c34c
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      src/lager_sup.erl

+ 4
- 2
src/lager_sup.erl Wyświetl plik

@ -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) ->

Ładowanie…
Anuluj
Zapisz