camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rural Hunter <ruralhun...@gmail.com>
Subject Re: Camel swallows Error
Date Wed, 12 Feb 2014 02:49:12 GMT
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
>
>
>


Mime
View raw message