Fix debug logging information

Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/8c5fe2c8
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/8c5fe2c8
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/8c5fe2c8

Branch: refs/heads/master
Commit: 8c5fe2c8e8308f570df1839bb314ec331f870831
Parents: 092b3f1
Author: Junkai Xue <[email protected]>
Authored: Thu Jun 7 18:08:48 2018 -0700
Committer: Junkai Xue <[email protected]>
Committed: Thu Jul 12 17:01:59 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/helix/common/caches/CurrentStateCache.java   | 2 +-
 .../org/apache/helix/controller/rebalancer/CustomRebalancer.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/8c5fe2c8/helix-core/src/main/java/org/apache/helix/common/caches/CurrentStateCache.java
----------------------------------------------------------------------
diff --git 
a/helix-core/src/main/java/org/apache/helix/common/caches/CurrentStateCache.java
 
b/helix-core/src/main/java/org/apache/helix/common/caches/CurrentStateCache.java
index 9b1fb99..7fee4b0 100644
--- 
a/helix-core/src/main/java/org/apache/helix/common/caches/CurrentStateCache.java
+++ 
b/helix-core/src/main/java/org/apache/helix/common/caches/CurrentStateCache.java
@@ -99,7 +99,7 @@ public class CurrentStateCache extends AbstractDataCache {
             - startTime) + " ms");
     if (LOG.isDebugEnabled()) {
       LogUtil.logDebug(LOG, getEventId(),
-          String.format("Current State freshed : ", 
_currentStateMap.toString()));
+          String.format("Current State freshed : %s", 
_currentStateMap.toString()));
     }
     return true;
   }

http://git-wip-us.apache.org/repos/asf/helix/blob/8c5fe2c8/helix-core/src/main/java/org/apache/helix/controller/rebalancer/CustomRebalancer.java
----------------------------------------------------------------------
diff --git 
a/helix-core/src/main/java/org/apache/helix/controller/rebalancer/CustomRebalancer.java
 
b/helix-core/src/main/java/org/apache/helix/controller/rebalancer/CustomRebalancer.java
index ebc156a..716f8d8 100644
--- 
a/helix-core/src/main/java/org/apache/helix/controller/rebalancer/CustomRebalancer.java
+++ 
b/helix-core/src/main/java/org/apache/helix/controller/rebalancer/CustomRebalancer.java
@@ -85,8 +85,8 @@ public class CustomRebalancer extends AbstractRebalancer {
 
     cache.setCachedResourceAssignment(resource.getResourceName(), 
partitionMapping);
     if (LOG.isDebugEnabled()) {
-      LOG.debug(String.format("Processing resource:", 
resource.getResourceName()));
-      LOG.debug(String.format("Final Mapping of resource", 
partitionMapping.toString()));
+      LOG.debug(String.format("Processing resource: %s", 
resource.getResourceName()));
+      LOG.debug(String.format("Final Mapping of resource : %s", 
partitionMapping.toString()));
     }
     return partitionMapping;
   }

Reply via email to