From 61180f4656dd84067a43e89107d814e17c221dc2 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Fri, 2 Aug 2019 14:57:54 -0700 Subject: [PATCH] HADOOP-15942. Change the logging level form DEBUG to ERROR for RuntimeErrorException in JMXJsonServlet. Contributed by Anuhan Torgonshar. --- .../src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java index c404ebedebb..f20933b5c86 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java @@ -348,7 +348,8 @@ public class JMXJsonServlet extends HttpServlet { } catch (RuntimeErrorException e) { // RuntimeErrorException happens when an unexpected failure occurs in getAttribute // for example https://issues.apache.org/jira/browse/DAEMON-120 - LOG.debug("getting attribute "+attName+" of "+oname+" threw an exception", e); + LOG.error("getting attribute {} of {} threw an exception", + attName, oname, e); return; } catch (AttributeNotFoundException e) { //Ignored the attribute was not found, which should never happen because the bean