Skip to content

Commit a0c6708

Browse files
committed
Add debug logging for statement completion failure
1 parent 7019589 commit a0c6708

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
@@ -39,6 +39,7 @@
3939
import java.util.regex.Pattern;
4040

4141
import static java.lang.String.format;
42+
import static java.lang.System.Logger.Level.DEBUG;
4243
import static java.lang.System.Logger.Level.TRACE;
4344
import static java.util.Collections.emptyList;
4445
import static org.firebirdsql.gds.ISCConstants.SQL_BLOB;
@@ -285,12 +286,14 @@ void notifyStatementCompleted(boolean success, Exception originalException) {
285286
try {
286287
notifyStatementCompleted(success);
287288
} catch (SQLException e) {
289+
log.log(DEBUG, "Statement completion failure by exception", e);
288290
if (originalException instanceof SQLException sqle) {
289291
sqle.setNextException(e);
290292
} else {
291293
originalException.addSuppressed(e);
292294
}
293295
} catch (RuntimeException e) {
296+
log.log(DEBUG, "Statement completion failure by exception", e);
294297
originalException.addSuppressed(e);
295298
}
296299
}

0 commit comments

Comments
 (0)