[SERVER-83180] Add a logging macro that only logs when not in quiet mode Created: 13/Nov/23  Updated: 15/Nov/23

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

Type: Improvement Priority: Major - P3
Reporter: Kaitlin Mahar Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

There are a number of places in the codebase (I count 23 as SERVER-81948) that we check if the global "quiet" parameter is set before emitting a log message. It would be a nice convenience to have some macro(s) similar to the other log macros that handle checking the parameter for you when deciding whether to emit the message.



 Comments   
Comment by Kaitlin Mahar [ 15/Nov/23 ]

I don't feel strongly about any particular solution, more just that there is some convenient way to do this, so whatever y'all think the best approach is SGTM!

Comment by Jason Chan [ 14/Nov/23 ]

billy.donahue@mongodb.com mentioned logging macros might not be the optimal solution but we still think this is a reasonable ask.

Comment by Billy Donahue [ 14/Nov/23 ]

I'd say not a new macro though. More like an Option flag.

Generated at Thu Feb 08 06:51:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.