Skip to content

Commit

Permalink
Log retry counter
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jan 23, 2024
1 parent 4ea9a42 commit 6ed0127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkcs11/src/backend/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ impl LoginCtx {
) =>
{
if retry_count == retry_limit {
error!("Retry count exceeded, instance is unreachable: {err}");
error!("Retry count exceeded after {retry_limit} attempts, instance is unreachable: {err}");
return Err(ApiError::InstanceRemoved);
}

warn!("IO error connecting to the instance, {err}, retrying in {delay_seconds}s");
warn!("Connection attempt {retry_count} failed: IO error connecting to the instance, {err}, retrying in {delay_seconds}s");
thread::sleep(delay);
}
// Otherwise, return the error
Expand Down

0 comments on commit 6ed0127

Please sign in to comment.