You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Stephan Siano (JIRA)" <ji...@apache.org> on 2014/11/28 10:21:14 UTC

[jira] [Created] (CAMEL-8091) DefaultExchangeFormatter does not consider Exchange.LOG_DEBUG_BODY_MAX_CHARS

Stephan Siano created CAMEL-8091:
------------------------------------

             Summary: DefaultExchangeFormatter does not consider Exchange.LOG_DEBUG_BODY_MAX_CHARS
                 Key: CAMEL-8091
                 URL: https://issues.apache.org/jira/browse/CAMEL-8091
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.14.0, 2.13.3
            Reporter: Stephan Siano


The DefaultExchangeFormatter does not consider the Exchange.LOG_DEBUG_BODY_MAX_CHARS context property that is supposed to limit the size of the logged payload.

It is possible to set a maxChars on the DefaultExchangeFormatter, but that has a different semantics (limits the length of the formatted exchange, not of the message payload) and is complicated to set in some cases (e.g. in the case of the default error handler)

The attached extension also honors the Exchange.LOG_DEBUG_BODY_MAX_CHARS context property when formatting the exchange.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)