Skip to content

Commit

Permalink
Log EAGAIN retries at debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Apr 24, 2024
1 parent 76a933c commit 46cf4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ra_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
-define(HANDLE_EAGAIN(Op),
case Op of
{error, eagain} ->
?INFO("EAGAIN during file operation, retrying once in 10ms...", []),
?DEBUG("EAGAIN during file operation, retrying once in 10ms...", []),
timer:sleep(10),
case Op of
{error, eagain} = Err ->
?INFO("EAGAIN again during file operation", []),
?DEBUG("EAGAIN again during file operation", []),
Err;
Res ->
Res
Expand Down

0 comments on commit 46cf4cb

Please sign in to comment.