Skip to content

Commit 04235f9

Browse files
committed
Correct log message format in AbstractDriverManagerConnectionSource
The debug log message in AbstractDriverManagerConnectionSource had 4 placeholders but was supplied with 5 arguments. This corrects the format string to match the argument count, resolving the warning. Fixes #3828
1 parent 8ec5703 commit 04235f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc/AbstractDriverManagerConnectionSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public Connection getConnection() throws SQLException {
160160
connection = DriverManager.getConnection(actualConnectionString, toString(userName), toString(password));
161161
}
162162
LOGGER.debug(
163-
"{} acquired connection for '{}': {} ({}{@})",
163+
"{} acquired connection for '{}': {} ({}@{})",
164164
getClass().getSimpleName(),
165165
actualConnectionString,
166166
connection,

0 commit comments

Comments
 (0)