Browse Source

Fixup

pull/514/head
Mark Allen 5 years ago
parent
commit
fc6221c92c
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/lager_file_backend.erl
  2. +1
    -1
      src/lager_util.erl

+ 2
- 2
src/lager_file_backend.erl View File

@ -260,7 +260,7 @@ write(#state{name=Name, fd=FD,
State1;
_ ->
?INT_LOG(error, "Failed to rotate log file ~ts with error ~s", [Name, file:format_error(Reason)]),
State#state{flap=true}
State1#state{flap=true}
end
end;
{ok, {NewFD, NewInode, NewCtime, _Size}} ->
@ -273,7 +273,7 @@ write(#state{name=Name, fd=FD,
State0;
_ ->
?INT_LOG(error, "Failed to reopen log file ~ts with error ~s", [Name, file:format_error(Reason)]),
State#state{flap=true}
State0#state{flap=true}
end
end;
false ->

+ 1
- 1
src/lager_util.erl View File

@ -929,7 +929,7 @@ do_delete_file(_FsElem, 0) ->
do_delete_file(FsElem, Attempts) ->
case file:delete(FsElem) of
ok -> ok;
Error ->
_Error ->
do_delete_file(FsElem, Attempts - 1)
end.

Loading…
Cancel
Save