james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [01/10] james-project git commit: JAMES-2441 Avoid an implicit `toString` call
Date Mon, 02 Jul 2018 04:49:27 GMT
Repository: james-project
Updated Branches:
  refs/heads/master e5bc7d6b0 -> dca7006e4


JAMES-2441 Avoid an implicit `toString` call


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/d6ab825b
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/d6ab825b
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/d6ab825b

Branch: refs/heads/master
Commit: d6ab825bbe0d80a66f480a5341f515148b928668
Parents: c767bf7
Author: benwa <btellier@linagora.com>
Authored: Fri Jun 29 09:32:52 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Mon Jul 2 11:48:52 2018 +0700

----------------------------------------------------------------------
 .../apache/james/modules/mailbox/ResilientClusterProvider.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/d6ab825b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/ResilientClusterProvider.java
----------------------------------------------------------------------
diff --git a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/ResilientClusterProvider.java
b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/ResilientClusterProvider.java
index 65c949f..fa9a81e 100644
--- a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/ResilientClusterProvider.java
+++ b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/ResilientClusterProvider.java
@@ -36,6 +36,7 @@ import org.slf4j.LoggerFactory;
 
 import com.datastax.driver.core.Cluster;
 import com.datastax.driver.core.exceptions.NoHostAvailableException;
+import com.google.common.collect.ImmutableList;
 import com.nurkiewicz.asyncretry.AsyncRetryExecutor;
 import com.nurkiewicz.asyncretry.function.RetryCallable;
 
@@ -53,7 +54,8 @@ public class ResilientClusterProvider implements Provider<Cluster>
{
     }
 
     private RetryCallable<Cluster> getClusterRetryCallable(ClusterConfiguration configuration)
{
-        LOGGER.info("Trying to connect to Cassandra service at {} (list {})", LocalDateTime.now(),
configuration.getHosts());
+        LOGGER.info("Trying to connect to Cassandra service at {} (list {})", LocalDateTime.now(),
+            ImmutableList.copyOf(configuration.getHosts()).toString());
 
         return context -> {
             Cluster cluster = ClusterBuilder.builder()


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message