HADOOP-15942. Change the logging level form DEBUG to ERROR for RuntimeErrorException in JMXJsonServlet. Contributed by Anuhan Torgonshar.
This commit is contained in:
parent
b01efe5cf6
commit
61180f4656
@ -348,7 +348,8 @@ private void writeAttribute(JsonGenerator jg, ObjectName oname, MBeanAttributeIn
|
||||
} 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
|
||||
|
Loading…
Reference in New Issue
Block a user