diff --git a/src/main/java/com/zaxxer/hikari/pool/PoolBase.java b/src/main/java/com/zaxxer/hikari/pool/PoolBase.java index 1356a4ee1..f5b5f6b0b 100644 --- a/src/main/java/com/zaxxer/hikari/pool/PoolBase.java +++ b/src/main/java/com/zaxxer/hikari/pool/PoolBase.java @@ -610,7 +610,7 @@ private void setLoginTimeout(final DataSource dataSource) dataSource.setLoginTimeout(Math.max(1, (int) MILLISECONDS.toSeconds(500L + connectionTimeout))); } catch (Exception e) { - logger.info("{} - Failed to set login timeout for data source. ({})", poolName, e.getMessage()); + logger.info("{} - Failed to set login timeout for data source. ({})", poolName, e.toString()); } } }