[SERVER-36003] Log application name of drivers in log messages Created: 06/Jul/18  Updated: 27/Oct/23  Resolved: 06/Jul/18

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

Type: Improvement Priority: Major - P3
Reporter: Siyuan Zhou Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Linked BF Score: 60

 Description   

The log messages of connection from shell and mongod are the same. It would help debugging if we could distinguish them.

{ driver: { name: "NetworkInterfaceTL", version: "4.0.0-28-g6c89f12643" }, os: { type: "Windows", name: "Microsoft Windows Server 2008 R2", architecture: "x86_64", version: "6.1 SP1 (build 7601)" } }



 Comments   
Comment by Siyuan Zhou [ 06/Jul/18 ]

mark.benvenuto, that's right. I overlooked it. Thanks!

Comment by Mark Benvenuto [ 06/Jul/18 ]

The shell logs a different string

2018-07-06T17:50:59.414-0400 I NETWORK  [conn1] received client metadata from 127.0.0.1:57743 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.1.0-555-g33c054383d" }, os: { type: "Windows", name: "Microsoft Windows 10", architecture: "x86_64", version: "10.0 (build 17134)" } } 

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