[
https://issues.apache.org/jira/browse/PROTON-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robbie Gemmell resolved PROTON-957.
-----------------------------------
Resolution: Fixed
> [proton-j] make trace logging of transfer frames more useful
> ------------------------------------------------------------
>
> Key: PROTON-957
> URL: https://issues.apache.org/jira/browse/PROTON-957
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-j
> Affects Versions: 0.9.1
> Reporter: Robbie Gemmell
> Assignee: Robbie Gemmell
> Priority: Minor
> Fix For: 0.10
>
>
> In proton-C, the number of payload bytes in the transfer are always reported,
> then a fixed maximum 1024 char string containing stringified payload is
> shown, and the string is appended with "...(truncated)" whenever it doesnt
> contain the full payload.
> In Proton-J, the entire payload is toString'ed and then a much smaller
> semi-fixed (its configurable via system property) maximum 80chars of
> stringified payload is shown, and if this is not the full string then the
> total number of characters in the string is displayed. This gives you no
> usable idea of how many bytes are in the remaining or overall payload since
> each byte uses 1 or 4chars to display.
> To make things more aligned and more usable, the output should be updated to
> be more like proton-c, logging the total payload size in the transfer first,
> then the stringified content which should be increased in length to match
> proton-c, which will make it more usable since it currently only tends to
> show part of the header/properties sections and gets nowhere near the actual
> body section bytes of the message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)