[jOOQ/jOOQ#15050] Fix regression
This commit is contained in:
parent
923d3c7cf8
commit
30d3762403
@ -187,8 +187,13 @@ public final class JooqLogger implements Log {
|
||||
}
|
||||
|
||||
private final void decrementLimitAndDo(Runnable runnable) {
|
||||
if (limitMessages == null || limitMessages.getAndUpdate(i -> Math.max(i - 1, 0)) > 0)
|
||||
try {
|
||||
runnable.run();
|
||||
}
|
||||
finally {
|
||||
if (limitMessages != null)
|
||||
limitMessages.getAndUpdate(i -> Math.max(i - 1, 0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user