Преглед изворни кода

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

pull/25/merge
Andrew Thompson пре 13 година
родитељ
комит
5c7a79fdf9
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      src/lager_sup.erl

+ 2
- 0
src/lager_sup.erl Прегледај датотеку

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

Loading…
Откажи
Сачувај