[SERVER-8244] Logging using LogLevels and LabledLevels is broken Created: 18/Jan/13  Updated: 11/Jul/16  Resolved: 19/Jan/13

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 2.4.0-rc0

Type: Bug Priority: Blocker - P1
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Related commits (at least):
https://github.com/mongodb/mongo/commit/4db60cf2
https://github.com/mongodb/mongo/commit/892aad0c2fd35985f12b052668f1e37195c17740#L37L1337

With these two commits, lines starting with LOG(LL_ERROR) are silently blackholed because LL_ERROR is an enum with value 4.

Also it means that MONGO_LOG() can't return a nullstream since it is called by error() and warning().



 Comments   
Comment by auto [ 06/Mar/13 ]

Author:

{u'date': u'2013-01-18T23:37:08Z', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-8244 Pass log levels from MONGO_LOG to Logstream

This is a partial reversion and change of commit
4db60cf23b58a7a5e177e69c142ab9e1503a3b1b.
Branch: v2.2
https://github.com/mongodb/mongo/commit/9887fa9cd31bc8fb8500784d1635068cab6abb3e

Comment by auto [ 19/Jan/13 ]

Author:

{u'date': u'2013-01-18T23:37:08Z', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}

Message: SERVER-8244 Pass log levels from MONGO_LOG to Logstream

This is a partial reversion and change of commit
4db60cf23b58a7a5e177e69c142ab9e1503a3b1b.
Branch: master
https://github.com/mongodb/mongo/commit/6497950cd222f39313d47bceee26d7d8f83f7acc

Generated at Thu Feb 08 03:16:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.