[SERVER-48189] Add missing specialization for doLogUnpacked() Created: 13/May/20 Updated: 06/Dec/22 Resolved: 25/May/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Sara Golemon | Assignee: | Backlog - Security Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Security
|
| Participants: |
| Description |
|
https://github.com/mongodb/mongo/blob/b515bbbb15e68a9467bd69c16ff0a87e90072f99/src/mongo/logv2/log.h#L91 indicates that LOGV2(id, "format msg", "msg", dynAttrs) is a valid invocation, however the required specialization of doLogUnpacked() is missing from src/mongo/logv2/log_detail.h |
| Comments |
| Comment by Mark Benvenuto [ 25/May/21 ] |
|
Dynamic Attributes are rarely used because it makes it difficult to statically analyze log messages. More importantly, we do not want to support formatted message strings in these log messages since it has been a goal to move away from them after LOGV2 was introduced. |