[SERVER-46127] LOGV2 conversion merges unittest::log() lines with kDefault lines Created: 13/Feb/20  Updated: 29/Oct/23  Resolved: 16/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Gabriel Russell (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2020-03-09, Service Arch 2020-04-06, Service arch 2020-04-20
Participants:

 Description   

unittest::log() used to be a separable stream of data in unit tests.
It happened to go to the kDefault component, but conceivably we could edit unittest::log() to redirect it elsewhere. The LOGV2 conversion gets rid of unittest::log() lines entirely, in such a way that they literally become kDefault log statements.

We might want to produce a component just for unit test log statements.
Log lines coming from the test itself are of a different nature than log lines coming from the code under test and the distinction is useful. Previously the filename would give some hint as to the statement's origin, but we could codify this with a component id to make filtering easier.



 Comments   
Comment by Githook User [ 30/Apr/20 ]

Author:

{'name': 'Gabriel Russell', 'email': 'gabriel.russell@mongodb.com', 'username': 'gabrielrussell'}

Message: SERVER-46127 unit tests log to a kTest component

(cherry picked from commit 79a8c251b6aa40165893bf0026091559eb5c13c7)
Branch: v4.4
https://github.com/mongodb/mongo/commit/3da015414ddfc5e096258070172ea90d008804a0

Comment by Githook User [ 14/Apr/20 ]

Author:

{'name': 'Gabriel Russell', 'email': 'gabriel.russell@mongodb.com', 'username': 'gabrielrussell'}

Message: SERVER-46127 unit tests log to a kTest component
Branch: master
https://github.com/mongodb/mongo/commit/79a8c251b6aa40165893bf0026091559eb5c13c7

Comment by Gabriel Russell (Inactive) [ 26/Mar/20 ]

https://mongodbcr.appspot.com/559150017/

Generated at Thu Feb 08 05:10:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.