Even more detailed log for broken connections

pull/41/head
Brett Wooldridge 11 years ago
parent 522717f885
commit ce2d5a3141

@ -143,7 +143,7 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
forceClose |= sqlState.startsWith("08") | SQL_ERRORS.contains(sqlState);
if (forceClose)
{
LOGGER.warn("Connection {} marked as broken because of SQLSTATE({})", delegate.toString(), sqlState);
LOGGER.warn("Connection {} marked as broken because of SQLSTATE({}), ErrorCode({}): {}", delegate.toString(), sqlState, sqle.getErrorCode(), sqle.getNextException());
}
}
}

Loading…
Cancel
Save