diff --git a/dspace-api/src/main/java/org/dspace/core/Context.java b/dspace-api/src/main/java/org/dspace/core/Context.java index 69f3379bced7..5a894219358a 100644 --- a/dspace-api/src/main/java/org/dspace/core/Context.java +++ b/dspace-api/src/main/java/org/dspace/core/Context.java @@ -475,6 +475,7 @@ public void commit() throws SQLException { // Commit our changes (this closes the transaction but leaves database connection open) dbConnection.commit(); reloadContextBoundEntities(); + log.info("commit() method - Committing transaction END."); } else { log.info("commit() method - No database connection to commit to."); } @@ -602,6 +603,7 @@ public void rollback() throws SQLException { dbConnection.rollback(); log.info("rollback() method - Transaction successfully rolled back."); reloadContextBoundEntities(); + log.info("rollback() method - Transaction successfully rolled back END."); } } catch (SQLException e) { log.error("Error rolling back transaction", e); @@ -812,6 +814,7 @@ protected void finalize() throws Throwable { log.info("finalize() method - calling super.finalize()."); super.finalize(); + log.info("finalize() method - calling super.finalize() END."); } public void shutDownDatabase() throws SQLException { diff --git a/dspace-api/src/main/java/org/dspace/eperson/EPerson.java b/dspace-api/src/main/java/org/dspace/eperson/EPerson.java index d2942ead2499..b670651ab081 100644 --- a/dspace-api/src/main/java/org/dspace/eperson/EPerson.java +++ b/dspace-api/src/main/java/org/dspace/eperson/EPerson.java @@ -125,7 +125,6 @@ public class EPerson extends DSpaceObject implements DSpaceObjectLegacySupport { * {@link org.dspace.eperson.service.EPersonService#create(Context)} */ protected EPerson() { - ThreadContext.put("classID", String.valueOf(System.identityHashCode(this))); Exception exception = new Exception("Stack trace for EPerson creation"); log.info("EPerson created", exception); } diff --git a/dspace-server-webapp/src/main/java/org/dspace/app/rest/security/jwt/JWTTokenRestAuthenticationServiceImpl.java b/dspace-server-webapp/src/main/java/org/dspace/app/rest/security/jwt/JWTTokenRestAuthenticationServiceImpl.java index c28729ff83a8..e0bb563377a5 100644 --- a/dspace-server-webapp/src/main/java/org/dspace/app/rest/security/jwt/JWTTokenRestAuthenticationServiceImpl.java +++ b/dspace-server-webapp/src/main/java/org/dspace/app/rest/security/jwt/JWTTokenRestAuthenticationServiceImpl.java @@ -262,6 +262,7 @@ private void addTokenToResponse(final HttpServletRequest request, final HttpServ resetCSRFToken(request, response); } response.setHeader(AUTHORIZATION_HEADER, String.format("%s %s", AUTHORIZATION_TYPE, token)); + log.info("DQ: Added token to request"); } /**