Commit 6e84664
authored
Fix logging not being suppressed when LogLevel.OFF is configured (#1167)
## Description
NO_CHANGELOG=true
<!-- Provide a brief summary of the changes made and the issue they aim
to address.-->
When LogLevel.OFF was set, setupLogger() returned early without
configuring the JUL logger. This caused Java's default logging behavior
to kick in, resulting in deprecation warnings (e.g., ignoreTransactions
warnings) being logged to console despite logging being disabled.
Now properly initializes the logger with Level.OFF to suppress all
output while using STDOUT to avoid file system access issues in
restricted environments.
Fixes #1158
## Testing
<!-- Describe how the changes have been tested-->
Manual testing
## Additional Notes to the Reviewer
<!-- Share any additional context or insights that may help the reviewer
understand the changes better. This could include challenges faced,
limitations, or compromises made during the development process.
Also, mention any areas of the code that you would like the reviewer to
focus on specifically. -->1 parent 56f872b commit 6e84664
File tree
2 files changed
+9
-6
lines changed- src
- main/java/com/databricks/jdbc/common/util
- test/java/com/databricks/jdbc/common/util
2 files changed
+9
-6
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments