Quellcode durchsuchen

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

Can't disable periodic file rotation
pull/154/head
Andrew Thompson vor 12 Jahren
Ursprung
Commit
316c595e37
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/lager_file_backend.erl

+ 1
- 1
src/lager_file_backend.erl Datei anzeigen

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

Laden…
Abbrechen
Speichern