[SERVER-47894] Update link in logv2 error message when a default component is not defined Created: 01/May/20  Updated: 29/Oct/23  Resolved: 15/May/20

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

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

If I don’t define a default log component in a source file I get the following error:

src/mongo/logv2/log.h:66:2: error: #error "mongo/logv2/log.h requires MONGO_LOGV2_DEFAULT_COMPONENT to be defined. " "Please see http://www.mongodb.org/about/contributors/reference/server-logging-rules/ "

But the linked page was last edited in 2016. The guidance is outdated because it has been superseded by logv2. 

We should update the error message to include a link to an updated README about LOGV2.



 Comments   
Comment by Githook User [ 08/May/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-47894 Update link in logv2/log.h about default log component
Branch: master
https://github.com/mongodb/mongo/commit/7c89f891066bcbf7aa0c450cb3af81d11459b1e2

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