From 1be53bac73eb01e7a47acc84e8ff860445366052 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 12 May 2016 11:44:01 +0200 Subject: [PATCH 1/1] Eliminate unneeded String.format() Logger already supports formatting strings, no need to pre-format them. Change-Id: Iea96443126bad0ca483ec0cc775d081384028497 Signed-off-by: Robert Varga --- .../controller/cluster/datastore/DistributedDataStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java index ea7330ae23..0244eb3740 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java @@ -265,7 +265,8 @@ public class DistributedDataStore implements DistributedDataStoreInterface, Sche } catch (Exception e){ lastException = e; Uninterruptibles.sleepUninterruptibly(100, TimeUnit.MILLISECONDS); - LOG.debug(String.format("Could not create actor %s because of %s - waiting for sometime before retrying (retry count = %d)", shardManagerId, e.getMessage(), i)); + LOG.debug("Could not create actor {} because of {} - waiting for sometime before retrying (retry count = {})", + shardManagerId, e.getMessage(), i); } } -- 2.36.6