Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-2971

Append (not add new) InetAddress info logging when starting MessagingService

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.3
    • None
    • None

    Description

      Currently we have

      MessagingService.getServerSocket(InetAddress localEp)
      logger_.info("Starting Messaging Service on port {}", DatabaseDescriptor.getStoragePort());
      

      We should probably just print the whole binded address. The address is an InetSocketAddress:

      InetSocketAddress address = new InetSocketAddress(localEp, DatabaseDescriptor.getStoragePort());
      try
      {
          ss.bind(address);
      }
      
      logger_.info("Starting Messaging Service on {}",address);
      

      sample output with the new log:

       INFO [main] 2011-07-29 18:54:54,018 MessagingService.java (line 226) Starting Messaging Service on faranth/192.168.1.141:7000
      

      Attachments

        1. 2971.patch
          0.6 kB
          Jackson Chung

        Activity

          People

            cywjackson Jackson Chung
            cywjackson Jackson Chung
            Jackson Chung
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: