[SERVER-15884] mongod --version shouldn't print date, severity, log component Created: 30/Oct/14  Updated: 24/Nov/14  Resolved: 12/Nov/14

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 2.8.0-rc1

Type: Improvement Priority: Minor - P4
Reporter: Matt Kangas Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-15904 Inconsistent version output informati... Open
Related
is related to SERVER-6777 Eliminate all direct use of cout/stdo... Closed
Backwards Compatibility: Minor Change
Participants:

 Description   

Don't log() to produce the "--version" output. This is ugly and inconsistent.

$ ./mongod --version
db version v2.7.9-pre-
2014-10-30T14:14:30.264-0400 I CONTROL  git version: 2f67e702915e1a7f400875ab28d10a10873581a3 modules: subscription
2014-10-30T14:14:30.264-0400 I CONTROL  OpenSSL version: OpenSSL 1.0.1 14 Mar 2012
 
$ ./mongos --version
MongoS version 2.7.9-pre- starting: pid=28171 port=27017 64-bit host=beefsupreme (--help for usage)
_DEBUG build
git version: 2f67e702915e1a7f400875ab28d10a10873581a3 modules: subscription
OpenSSL version: OpenSSL 1.0.1 14 Mar 2012
build sys info: Linux beefsupreme 3.8.0-38-generic #56~precise1-Ubuntu SMP Thu Mar 13 16:22:48 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
 
$ ./mongo --version
MongoDB shell version: 2.7.9-pre-



 Comments   
Comment by Githook User [ 12/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-15884 Clean up mongod --version output
Branch: master
https://github.com/mongodb/mongo/commit/8c8d039ad7db78593f5e96e1deddf52bcb01bbd1

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