Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15884

mongod --version shouldn't print date, severity, log component

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • Minor Change

      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-
      

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            matt.kangas Matt Kangas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: