Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
karenychen committed Aug 5, 2024
1 parent 5089a60 commit 7d3ff8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/lockrenewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ func (plr *peekLockRenewer) renewMessageLock(ctx context.Context, message *azser
}
// exit the renewal if no error or if we get any error other than context deadline exceeded
if !errors.Is(renewErr, context.DeadlineExceeded) {
getLogger(ctx).Error(fmt.Sprintf("failed to renew lock: %s", renewErr))
return renewErr
}
getLogger(ctx).Error(fmt.Sprintf("renewal error is %s, retrying the renewal fast", renewErr))
}
// lock is expired or message context is done
if ctx.Err() != nil {
Expand Down

0 comments on commit 7d3ff8d

Please sign in to comment.