ソースを参照

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;

読み込み中…
キャンセル
保存