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

weichiu 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 61180f4  HADOOP-15942. Change the logging level form DEBUG to ERROR 
for RuntimeErrorException in JMXJsonServlet. Contributed by Anuhan Torgonshar.
61180f4 is described below

commit 61180f4656dd84067a43e89107d814e17c221dc2
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Fri Aug 2 14:57:54 2019 -0700

    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 c404ebe..f20933b 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to