Ver a proveniência

Don't create a crash log called 'undefined'. Closes #26

pull/25/merge
Andrew Thompson há 13 anos
ascendente
cometimento
5c7a79fdf9
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      src/lager_sup.erl

+ 2
- 0
src/lager_sup.erl Ver ficheiro

@ -40,6 +40,8 @@ init([]) ->
%% check if the crash log is enabled
Crash = case application:get_env(lager, crash_log) of
{ok, undefined} ->
[];
{ok, File} ->
MaxBytes = case application:get_env(lager, crash_log_msg_size) of
{ok, Val} when is_integer(Val) andalso Val > 0 -> Val;

Carregando…
Cancelar
Guardar