Skip to content

Commit

Permalink
DatabaseSpring > Put the last stacktrace in the log message instead o…
Browse files Browse the repository at this point in the history
…f the first.
  • Loading branch information
bcivel committed Jan 24, 2025
1 parent 1056715 commit d67cc18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ public Connection connect(final String connection) throws CerberusEventException

} catch (NamingException | SQLException ex1) {

LOG.warn("failed connection with 'java:/comp/env/jdbc/" + connection + "'", ex.toString());
LOG.warn("failed connection with 'java:/comp/env/jdbc/" + connection + "'", ex1.toString());
msg = new MessageEvent(MessageEventEnum.PROPERTY_FAILED_SQL);
msg
.resolveDescription("JDBC", "java:/comp/env/jdbc/" + connection)
.resolveDescription("ERROR", ex.toString());
.resolveDescription("ERROR", ex1.toString());
throw new CerberusEventException(msg);
}
}
Expand Down

0 comments on commit d67cc18

Please sign in to comment.