The default value is true, 
BTW, which version of Camel are you using?

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) 
(English)
http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On February 12, 2014 at 10:49:53 AM, Rural Hunter (ruralhun...@gmail.com) wrote:
>  
> hmm...I didn't set it manually. Is that default to false?
>  
> 于 2014/2/12 10:21, Willem Jiang 写道:
> > I just checked the code and found an interesting thing.
> >
> > public class DefaultSpringErrorHandler implements ErrorHandler  
> {
> >
> > private final LoggingExceptionHandler handler;
> > private final boolean logStackTrace;
> >
> > public DefaultSpringErrorHandler(Class owner, LoggingLevel  
> level, boolean logStackTrace) {
> > this.handler = new LoggingExceptionHandler(owner, level);  
> > this.logStackTrace = logStackTrace;
> > }
> >
> > @Override
> > public void handleError(Throwable throwable) {
> > if (logStackTrace) {
> > handler.handleException("Execution of JMS message listener  
> failed", throwable);
> > } else {
> > handler.handleException("Execution of JMS message listener  
> failed. Caused by: [" + throwable.getMessage() + "]", null);  
> > }
> > }
> >
> > }
> >
> > I double you set the jms configure option errorHandlerLogStackTrace  
> to be false.
> > You can get the full stack trace if you set the option to true.  
> >
> > --
> > Willem Jiang
> >
> > Red Hat, Inc.
> > Web: http://www.redhat.com
> > Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/)  
> (English)
> > http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)  
> > Twitter: willemjiang
> > Weibo: 姜宁willem
> >
> >
> >
>  
>  

Reply via email to