Skip to content

Commit

Permalink
Log after increment
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
  • Loading branch information
peterbroadhurst committed Jul 13, 2023
1 parent 8279627 commit 223178f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ffresty/ffresty.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ func NewWithConfig(ctx context.Context, ffrestyConfig Config) (client *resty.Cli
log.L(rCtx).Debugf("retry cancelled after %d attempts", rc.attempts)
return false
}
log.L(rCtx).Infof("retry %d/%d (min=%dms/max=%dms) status=%d", rc.attempts, retryCount, minTimeout.Milliseconds(), maxTimeout.Milliseconds(), r.StatusCode())
rc.attempts++
log.L(rCtx).Infof("retry %d/%d (min=%dms/max=%dms) status=%d", rc.attempts, retryCount, minTimeout.Milliseconds(), maxTimeout.Milliseconds(), r.StatusCode())
return true
})
}
Expand Down

0 comments on commit 223178f

Please sign in to comment.