You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2020/04/14 01:51:20 UTC

[helix] 02/02: Simplify logging

This is an automated email from the ASF dual-hosted git repository.

jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git

commit 4e57f27f3b04a9b4b62fcd27b7f7d837804619e1
Author: Huizhi Lu <ih...@gmail.com>
AuthorDate: Mon Apr 13 17:56:41 2020 -0700

    Simplify logging
---
 helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java b/helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java
index 095fd08..14f73f9 100644
--- a/helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java
+++ b/helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java
@@ -238,7 +238,7 @@ public class ZKHelixAdmin implements HelixAdmin {
         } else {
           String errorMessage = "Failed to drop instance: " + instanceConfig.getInstanceName()
               + ". Retry times: " + retryCnt;
-          logger.error(errorMessage, retryCnt, e.getCause());
+          logger.error(errorMessage, e);
           throw new HelixException(errorMessage, e);
         }
       }