-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.2.3
-
Component/s: Internal Code, Logging
-
None
-
ALL
The LOG() macro allows conditional logging without stream evaluation, while log() evaluates the stream regardless of the global log level. The task here is to remove all uses of log(int level) with a level >= 1, and replace them with LOG().
Note that log() messages are ok if they're information and not in a fast path (with some discretion). In the end, we should have the following log functions:
log() warning() error() LOG(int level)
We will get rid of:
log(int n)
As this is a large change, we should focus on one component at a time and submit individual code reviews. A breakdown of the components for this task is forthcoming.
- is depended on by
-
SERVER-7331 Optimize mongos performance
- Closed
- is related to
-
SERVER-7233 LOG macro can leak into client code.
- Closed