[JAVA-2948] Java driver cluster log level defaults to DEBUG Created: 29/Aug/18 Updated: 11/Sep/19 Resolved: 30/Aug/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Configuration |
| Affects Version/s: | 3.8.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Teemu Kolehmainen | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The default log level for org.mongodb.driver appears to be DEBUG as catalina.out is continuously spammed with messages like these: DEBUG 2018-08-29 05:12:52 cluster:56 - Checking status of *****:27017 ] Expected result would be not logging these messages unless explicitly configured to do so. |
| Comments |
| Comment by Ross Lawley [ 30/Aug/18 ] |
|
Thanks teemu-assetti, good to hear its all sorted. |
| Comment by Teemu Kolehmainen [ 30/Aug/18 ] |
|
Hi, This was a configuration error on our codebase, this issue can be closed. Thank you for your help! |
| Comment by Ross Lawley [ 29/Aug/18 ] |
|
Hi teemu-assetti, Thanks for the ticket, the default level is determined by the logging handler. See the logging documentation SLF4J is used with Java Util Logging (JUL) is the fallback. The logging level is determined by the library handling the logging and not by the driver itself. I hope that helps, Ross |