[SERVER-25939] Missing appName in config server log message Created: 01/Sep/16  Updated: 19/Sep/16  Resolved: 19/Sep/16

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

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-25903 All internal ops are listed as coming... Closed
Operating System: ALL
Sprint: Platforms 2016-09-19
Participants:

 Description   

Continuation from SERVER-25903. This log message is from a config server running _configsvrAddShard and doesn't include the app name. But all _configsvrAddShard requests come from a mongos running 'addShard' and all 'addShard' requests must be manually run, in the case of our jstests, all addShard requests should come from the shell and thus should have MongoDB Shell as the appName.



 Comments   
Comment by Mark Benvenuto [ 15/Sep/16 ]

Logging for client metadata was only added to the slow query logs and the profiler. It was not added to LOG(2) messages for runCommand.

We could expand the logging here to include client metadata if you think it is important:
https://github.com/mongodb/mongo/blob/c5f891c37a7fabc2455f2f0230ec9bcd76b62096/src/mongo/db/run_commands.cpp#L64-L65

Generated at Thu Feb 08 04:10:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.