[JAVA-4377] Add debug logging for number of results in query batches Created: 27/Oct/21 Updated: 28/Oct/23 Resolved: 09/Nov/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Logging |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Documentation Changes: | Not Needed |
| Description |
|
The driver already has debug logging available for server replies, but the log message is generic and doesn't log the actual response document. Normally this isn't a problem, but for cursor-related responses it can sometimes be useful to know the number of documents returned in each batch. We should add debug logging to QueryBatchCursor and AsyncQueryBatchCursor to log the number of documents returned in each batch. |
| Comments |
| Comment by Githook User [ 09/Nov/21 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Log cursor results at debug level (#817)
|