From 7eef6d3dc0454034c0b60011b4c786a84f90edc9 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 4 May 2017 17:51:43 +0200 Subject: [PATCH] Fix logger formatting strings Fix %s/{} mixups. Change-Id: I916996e17839a61802a83ddff31d162ac662f934 Signed-off-by: Robert Varga --- .../controller/cluster/persistence/LocalSnapshotStore.java | 2 +- .../controller/cluster/datastore/ShardDataTree.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStore.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStore.java index 0248d73d62..3e170fd326 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStore.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStore.java @@ -185,7 +185,7 @@ public class LocalSnapshotStore extends SnapshotStore { try { Files.move(temp.toPath(), actual.toPath(), StandardCopyOption.ATOMIC_MOVE); } catch (IOException e) { - LOG.warn("Failed to move %s to %s. Deleting %s..", temp, actual, temp, e); + LOG.warn("Failed to move {} to {}. Deleting {}..", temp, actual, temp, e); if (!temp.delete()) { LOG.error("Failed to successfully delete file {}", temp); } diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java index 4eeed882fa..e36bc98f99 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java @@ -253,7 +253,7 @@ public class ShardDataTree extends ShardDataTreeTransactionParent { dataTree.commit(candidate); notifyListeners(candidate); - LOG.debug("{}: state snapshot applied in %s", logContext, elapsed); + LOG.debug("{}: state snapshot applied in {}", logContext, elapsed); } /** -- 2.36.6