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-
|
Attachments
Issue Links
- is duplicated by
-
SERVER-15904 Inconsistent version output information from different binaries
-
- Open
-
- is related to
-
SERVER-6777 Eliminate all direct use of cout/stdout and cerr/stderr
-
- Closed
-