log adding a server to the cluster

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 2.0.0
    • Affects Version/s: 2.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Gary Murakami (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: