Skip to content

Commit bc383da

Browse files
fix: Let wrapperLoggerLevel values be case insensitive (#481)
1 parent 247c28e commit bc383da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/#semantic-versioning-200).
55

6+
## [?]
7+
### :bug: Fixed
8+
- Values for the `wrapperLoggerLevel` parameter are no longer case-sensitive ([#PR #481](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/481)).
9+
610
## [2.1.2] - 2023-5-21
711
### :crab: Changed
812
- Explicitly check for 28000 and 28P01 SQLStates in the IAM authentication plugin after SQLExceptions are thrown ([PR #456](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/456) and [PR #457](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/457)).

wrapper/src/main/java/software/amazon/jdbc/Driver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public Connection connect(final String url, final Properties info) throws SQLExc
110110

111111
final String logLevelStr = PropertyDefinition.LOGGER_LEVEL.getString(info);
112112
if (!StringUtils.isNullOrEmpty(logLevelStr)) {
113-
final Level logLevel = Level.parse(logLevelStr);
113+
final Level logLevel = Level.parse(logLevelStr.toUpperCase());
114114
final Logger rootLogger = Logger.getLogger("");
115115
for (final Handler handler : rootLogger.getHandlers()) {
116116
if (handler instanceof ConsoleHandler) {

0 commit comments

Comments
 (0)