HADOOP-17700. ExitUtil#halt info log should log HaltException (#3015)

Reviewed-by: Steve Loughran <stevel@apache.org>
Reviewed-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit c70ee2d548)
This commit is contained in:
Viraj Jasani 2021-05-22 15:36:58 +05:30 committed by Takanobu Asanuma
parent 526dbe4716
commit 87e32fbb8d
1 changed files with 1 additions and 2 deletions

View File

@ -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