You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jackson Chung (JIRA)" <ji...@apache.org> on 2011/07/30 04:02:09 UTC

[jira] [Updated] (CASSANDRA-2971) Append (not add new) InetAddress info logging when starting MessagingService

     [ https://issues.apache.org/jira/browse/CASSANDRA-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jackson Chung updated CASSANDRA-2971:
-------------------------------------

    Attachment: 2971.patch

> Append (not add new) InetAddress info logging when starting MessagingService
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2971
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2971
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jackson Chung
>            Priority: Minor
>         Attachments: 2971.patch
>
>
> Currently we have 
> {code: title=MessagingService.getServerSocket(InetAddress localEp) }
> logger_.info("Starting Messaging Service on port {}", DatabaseDescriptor.getStoragePort());
> {code}
> We should probably just print the whole binded address. The address is an InetSocketAddress:
> {code}
> InetSocketAddress address = new InetSocketAddress(localEp, DatabaseDescriptor.getStoragePort());
> try
> {
>     ss.bind(address);
> }
> {code}
> {code}
> logger_.info("Starting Messaging Service on {}",address);
> {code}
> sample output with the new log:
> {noformat}
>  INFO [main] 2011-07-29 18:54:54,018 MessagingService.java (line 226) Starting Messaging Service on faranth/192.168.1.141:7000
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira