Skip to content

Commit a2ba58a

Browse files
author
Levon Saldamli
committed
Show human readable retry count.
1 parent 626d88a commit a2ba58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/anotherchrisberry/spock/extensions/retry/RetryInterceptor.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RetryInterceptor implements IMethodInterceptor {
2424
invocation.proceed()
2525
attempts = retryMax + 1
2626
} catch (Throwable t) {
27-
LOG.info("Retry caught failure ${attempts} / ${retryMax}: ", t)
27+
LOG.info("Retry caught failure ${attempts + 1} / ${retryMax + 1}: ", t)
2828
attempts++
2929
if (attempts > retryMax) {
3030
throw t

0 commit comments

Comments
 (0)