Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-728

Improve logging of Mongo instance construction

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Mongo construction should log as much info as possible, in order to help people with debugging. Something like:

      Created Mongo instance (driver version 2.11.0-SNAPSHOT) with authority MongoAuthority{serverAddress=/127.0.0.1:27017, credentialsStore=MongoCredentialsStore{credentialsMap={}}} and options MongoOptions{description='null', connectionsPerHost=10, threadsAllowedToBlockForConnectionMultiplier=5, maxWaitTime=120000, connectTimeout=10000, socketTimeout=0, socketKeepAlive=false, autoConnectRetry=false, maxAutoConnectRetryTime=0, slaveOk=false, readPreference=null, dbDecoderFactory=DefaultDBDecoder.DefaultFactory, dbEncoderFactory=DefaultDBEncoder.DefaultFactory, safe=false, w=0, wtimeout=0, fsync=false, j=false, socketFactory=javax.net.DefaultSocketFactory@307b4703, cursorFinalizerEnabled=true, writeConcern=null, alwaysUseMBeans=false}
      

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: