diff options
Diffstat (limited to 'qpid/cpp/src/qpid/framing/AMQContentBody.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/framing/AMQContentBody.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/framing/AMQContentBody.cpp b/qpid/cpp/src/qpid/framing/AMQContentBody.cpp index d0ae9a2902..72f7d9978e 100644 --- a/qpid/cpp/src/qpid/framing/AMQContentBody.cpp +++ b/qpid/cpp/src/qpid/framing/AMQContentBody.cpp @@ -40,5 +40,7 @@ void qpid::framing::AMQContentBody::decode(Buffer& buffer, uint32_t _size){ void qpid::framing::AMQContentBody::print(std::ostream& out) const { out << "content (" << encodedSize() << " bytes)"; - out << " " << data.substr(0,16) << "..."; + const size_t max = 32; + out << " " << data.substr(0, max); + if (data.size() > max) out << "..."; } |