zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject zookeeper git commit: ZOOKEEPER-3001: Incorrect log message when try to delete container node
Date Mon, 26 Mar 2018 01:49:28 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.5 005b3fb8d -> 828eb9cd9


ZOOKEEPER-3001: Incorrect log message when try to delete container node

Missing `String.format`.

Author: sel-fish <fqlgy@hotmail.com>

Reviewers: Edward Ribeiro <edward.ribeiro@gmail.com>, Andor Molnár <andor@cloudera.com>,
Michael Han <hanm@apache.org>, maoling <maoling199210191@sina.com>

Closes #492 from sel-fish/ZOOKEEPER-3001

(cherry picked from commit 8cfca3add9c7fd705f9114daf4adaac9fc90f040)
Signed-off-by: Michael Han <hanm@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/828eb9cd
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/828eb9cd
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/828eb9cd

Branch: refs/heads/branch-3.5
Commit: 828eb9cd932e4ec72c5876d07d57965aefd9af17
Parents: 005b3fb
Author: sel-fish <fqlgy@hotmail.com>
Authored: Sun Mar 25 18:49:14 2018 -0700
Committer: Michael Han <hanm@apache.org>
Committed: Sun Mar 25 18:49:24 2018 -0700

----------------------------------------------------------------------
 .../main/org/apache/zookeeper/server/ContainerManager.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/828eb9cd/src/java/main/org/apache/zookeeper/server/ContainerManager.java
----------------------------------------------------------------------
diff --git a/src/java/main/org/apache/zookeeper/server/ContainerManager.java b/src/java/main/org/apache/zookeeper/server/ContainerManager.java
index 8834f29..e59d7bd 100644
--- a/src/java/main/org/apache/zookeeper/server/ContainerManager.java
+++ b/src/java/main/org/apache/zookeeper/server/ContainerManager.java
@@ -116,12 +116,12 @@ public class ContainerManager {
             Request request = new Request(null, 0, 0,
                     ZooDefs.OpCode.deleteContainer, path, null);
             try {
-                LOG.info("Attempting to delete candidate container: %s",
+                LOG.info("Attempting to delete candidate container: {}",
                         containerPath);
                 requestProcessor.processRequest(request);
             } catch (Exception e) {
-                LOG.error(String.format("Could not delete container: %s" ,
-                        containerPath), e);
+                LOG.error("Could not delete container: {}",
+                        containerPath, e);
             }
 
             long elapsedMs = Time.currentElapsedTime() - startMs;


Mime
View raw message