Parcourir la source

Allow date rotation to be disabled

pull/151/head
Andrew Thompson il y a 12 ans
Parent
révision
24029226d1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/lager_file_backend.erl

+ 1
- 1
src/lager_file_backend.erl Voir le fichier

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

Chargement…
Annuler
Enregistrer