Skip to content

Commit

Permalink
Fix to print both variables
Browse files Browse the repository at this point in the history
  • Loading branch information
chillosu committed Oct 18, 2022
1 parent f77fe20 commit 65d3f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/zaxxer/hikari/pool/PoolBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private Connection newConnection() throws Exception
var username = config.getUsername();
var password = config.getPassword();

logger.debug("{} - Attempting to create/setup new connection: {}", poolName, id.toString());
logger.debug("{} - Attempting to create/setup new connection: {} ", poolName, id.toString());

connection = (username == null) ? dataSource.getConnection() : dataSource.getConnection(username, password);
if (connection == null) {
Expand All @@ -375,7 +375,7 @@ private Connection newConnection() throws Exception
quietlyCloseConnection(connection, "(Failed to create/setup connection for id:".concat(id.toString()));
}
else if (getLastConnectionFailure() == null) {
logger.debug("{} - Failed to create/setup connection: {}", poolName, e.getMessage(), id.toString());
logger.debug("{} - Failed to create/setup connection: {} {}", poolName, e.getMessage(), id.toString());
}

lastConnectionFailure.set(e);
Expand Down

0 comments on commit 65d3f3f

Please sign in to comment.