Author: rgodfrey
Date: Wed May 13 12:46:41 2015
New Revision: 1679197
URL: http://svn.apache.org/r1679197
Log:
QPID-6542 : Additional logging of errors caused while performing management
actions
Modified:
qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RestServlet.java
Modified:
qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RestServlet.java
URL:
http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RestServlet.java?rev=1679197&r1=1679196&r2=1679197&view=diff
==============================================================================
---
qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RestServlet.java
(original)
+++
qpid/java/trunk/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/servlet/rest/RestServlet.java
Wed May 13 12:46:41 2015
@@ -688,11 +688,14 @@ public class RestServlet extends Abstrac
}
else if (e instanceof IllegalConfigurationException || e
instanceof IllegalArgumentException)
{
- if (LOGGER.isDebugEnabled())
+ LOGGER.warn(e.getClass().getSimpleName() + " processing
request : " + message);
+ Throwable t = e;
+ int maxDepth = 10;
+ while((t = t.getCause())!=null && maxDepth-- != 0)
{
- LOGGER.debug(e.getClass().getSimpleName() + " processing
request : " + message);
+ LOGGER.warn("... caused by " +
t.getClass().getSimpleName() + " : " + t.getMessage());
}
- else if (LOGGER.isTraceEnabled())
+ if (LOGGER.isTraceEnabled())
{
LOGGER.trace(e.getClass().getSimpleName() + " processing
request", e);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]