Skip to content

Commit 5bafa22

Browse files
Merge pull request #6 from levsa/master
Retry log print 1-based attempt count instead of 0-based.
2 parents 3741a22 + a2ba58a commit 5bafa22

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
.gradle
33
out
44
*.iml
5-
build
5+
build
6+
.classpath
7+
.project
8+
.settings/
9+
bin/

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)