Skip to content

Commit dfcf106

Browse files
committed
Add debug logging for statement completion failure
1 parent 703fcb1 commit dfcf106

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/org/firebirdsql/jdbc/FBStatement.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.util.regex.Pattern;
3131

3232
import static java.lang.String.format;
33+
import static java.lang.System.Logger.Level.DEBUG;
3334
import static java.lang.System.Logger.Level.TRACE;
3435
import static java.util.Collections.emptyList;
3536
import static org.firebirdsql.gds.ISCConstants.SQL_BLOB;
@@ -276,12 +277,14 @@ void notifyStatementCompleted(boolean success, Exception originalException) {
276277
try {
277278
notifyStatementCompleted(success);
278279
} catch (SQLException e) {
280+
log.log(DEBUG, "Statement completion failure by exception", e);
279281
if (originalException instanceof SQLException sqle) {
280282
sqle.setNextException(e);
281283
} else {
282284
originalException.addSuppressed(e);
283285
}
284286
} catch (RuntimeException e) {
287+
log.log(DEBUG, "Statement completion failure by exception", e);
285288
originalException.addSuppressed(e);
286289
}
287290
}

0 commit comments

Comments
 (0)