浏览代码

Merge pull request #151 from basho/adt-disable-date-rotation

Can't disable periodic file rotation
pull/154/head
Andrew Thompson 12 年前
父节点
当前提交
316c595e37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/lager_file_backend.erl

+ 1
- 1
src/lager_file_backend.erl 查看文件

@ -296,7 +296,7 @@ validate_logfile_proplist([{date, Date}|Tail], Acc) ->
validate_logfile_proplist(Tail, [{date, Spec}|Acc]);
{error, _} when Date == "" ->
%% legacy config allowed blanks
validate_logfile_proplist(Tail, Acc);
validate_logfile_proplist(Tail, [{date, undefined}|Acc]);
{error, _} ->
throw({bad_config, "Invalid rotation date", Date})
end;

正在加载...
取消
保存