停止打印 org.mule.exception.CatchMessagingExceptionStrategy 个错误

Stop printing org.mule.exception.CatchMessagingExceptionStrategy errors

在我的 mule 流程中,当消息被拒绝时,我收到 org.mule.exception.CatchMessagingExceptionStrategy 错误打印到日志中。我有一个可以处理异常的异常策略,但是错误和异常堆栈跟踪被打印到日志中,这将使日志无法按时间读取。怎么能阻止呢?实际上,当某些东西被过滤器拒绝时出现错误消息很有趣,它应该只是默默地处理接受的项目。

ERROR 2017-07-10 11:33:18,723 [[...-flow].connector.sftp.mule.default.receiver.01] org.mule.exception.CatchMessagingExceptionStrategy

如果您使用较新的 mule 版本,捕获异常策略应该允许您在 catch-exception-strategy 元素

上设置 logException="true"

<catch-exception-strategy logException="true">

否则您可以在工作室的 GUI 中取消选中 "Log Exceptions" 按钮。