You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ta...@apache.org on 2021/05/22 10:07:20 UTC

[hadoop] branch trunk updated: HADOOP-17700. ExitUtil#halt info log should log HaltException (#3015)

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

tasanuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c70ee2d  HADOOP-17700. ExitUtil#halt info log should log HaltException (#3015)
c70ee2d is described below

commit c70ee2d548feb9ec9a957e120045983dd21d9964
Author: Viraj Jasani <vj...@apache.org>
AuthorDate: Sat May 22 15:36:58 2021 +0530

    HADOOP-17700. ExitUtil#halt info log should log HaltException (#3015)
    
    Reviewed-by: Steve Loughran <st...@apache.org>
    Reviewed-by: Wei-Chiu Chuang <we...@apache.org>
---
 .../hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
index dbe6663..32f4b5b 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
@@ -232,8 +232,7 @@ public final class ExitUtil {
     try {
       if (status != 0) {
         //exit indicates a problem, log it
-        LOG.debug("Halt with status {}: {}", status, msg, ee);
-        LOG.info("Halt with status {}: {}", status, msg, msg);
+        LOG.info("Halt with status {}: {}", status, msg, ee);
       }
     } catch (Exception ignored) {
       // ignore exceptions here, as it may be due to an out of memory situation

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org