[SERVER-8182] getLog returns truncated lines when logUserIds=1 Created: 15/Jan/13  Updated: 11/Jul/16  Resolved: 15/Jan/13

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Steps To Reproduce:

1. Start mongod with --setParameter logUserIds=1 -v
2. Connect through shell and login.
3. Run dbStats command.
4. Run

{ getLog: 'global' }
Participants:

 Description   

Example line:

"Tue Jan 15 15:10:58.623 [conn1] user:test@test"

expected:

"Tue Jan 15 15:10:58.623 [conn1] user:test@test run command test.$cmd { dbStats: 1.0 }"



 Comments   
Comment by auto [ 15/Jan/13 ]

Author:

{u'date': u'2013-01-15T20:17:28Z', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}

Message: SERVER-8182 getLog returns truncated lines when logUserIds=1

Make sure that appendServerExtraLogContext does not append NULL to BufBuilder.
Branch: master
https://github.com/mongodb/mongo/commit/73a18c8d42f7af21342f596fccf527d6d635f045

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