Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-826

log adding a server to the cluster

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.0.0
    • Affects Version/s: 2.0.0
    • Component/s: None
    • None

      It would be nice to have the following log message so that we can track the adding of a server to the cluster. This also would be symmetrical with the logging of removing a server from the cluster which is already in place. Here's the patch.

        module Event
          class ServerAdded
            include Loggable
      
            # log message added to be symmetric with ServerRemoved
            def handle(address)
              log(:debug, 'MONGODB', [ "#{address} being added to the cluster." ])
              cluster.add(address)
            end
      
          end
        end
      

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            gjmurakami Gary Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: