Skip to content

Commit

Permalink
Adde more logs (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak authored Dec 21, 2024
1 parent a793ccb commit 6bd2e76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dspace-api/src/main/java/org/dspace/core/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,11 @@ protected void finalize() throws Throwable {
* If a context is garbage-collected, we roll back and free up the
* database connection if there is one.
*/
log.info("finalize() method - isDbConnection null: {}", dbConnection == null);
if (dbConnection != null) {
log.info("finalize() method - isTransActionAlive: {}", dbConnection.isTransActionAlive());
}

if (dbConnection != null && dbConnection.isTransActionAlive()) {
log.info("finalize() method - calling abort()");
abort();
Expand Down

0 comments on commit 6bd2e76

Please sign in to comment.