Browse Source

Allow date rotation to be disabled

pull/151/head
Andrew Thompson 12 years ago
parent
commit
24029226d1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lager_file_backend.erl

+ 1
- 1
src/lager_file_backend.erl View File

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

Loading…
Cancel
Save