Skip to content

Commit 73006e7

Browse files
author
Yegor Bugayenko
committed
#8 more logs
1 parent 67da041 commit 73006e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/co/stateful/Atomic.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ public T call() throws Exception {
172172
return this.callable.call();
173173
} finally {
174174
this.unlock();
175+
Logger.info(
176+
this,
177+
// @checkstyle LineLength (1 line)
178+
"\"%s\" took %[ms]s after %d attempt(s)",
179+
this.lock, System.currentTimeMillis() - start, attempt
180+
);
175181
}
176182
}
177183

0 commit comments

Comments
 (0)