diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2011-10-31 12:44:19 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2011-10-31 12:44:19 +0000 |
| commit | 7d103d11496928583df900fcd463c8aea86fc2af (patch) | |
| tree | 318c823489a2dc2f3a4aba38e3ff888db8d3a35e /cpp/src/qpid/client | |
| parent | dfc6735ed4403ada83bfbf6be12bc5b51f503077 (diff) | |
| download | qpid-python-7d103d11496928583df900fcd463c8aea86fc2af.tar.gz | |
NO_JIRA: Small mods to certain log trace and debug messages to improve log message consistency
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1195433 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client')
| -rw-r--r-- | cpp/src/qpid/client/RdmaConnector.cpp | 6 | ||||
| -rw-r--r-- | cpp/src/qpid/client/SslConnector.cpp | 6 | ||||
| -rw-r--r-- | cpp/src/qpid/client/TCPConnector.cpp | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/qpid/client/RdmaConnector.cpp b/cpp/src/qpid/client/RdmaConnector.cpp index 664640f5e7..21143a1a75 100644 --- a/cpp/src/qpid/client/RdmaConnector.cpp +++ b/cpp/src/qpid/client/RdmaConnector.cpp @@ -379,7 +379,7 @@ size_t RdmaConnector::encode(const char* buffer, size_t size) Mutex::ScopedLock l(lock); while (!frames.empty() && out.available() >= frames.front().encodedSize() ) { frames.front().encode(out); - QPID_LOG(trace, "SENT " << identifier << ": " << frames.front()); + QPID_LOG(trace, "SENT [" << identifier << "]: " << frames.front()); frames.pop_front(); if (lastEof) --lastEof; } @@ -402,13 +402,13 @@ size_t RdmaConnector::decode(const char* buffer, size_t size) framing::ProtocolInitiation protocolInit; if (protocolInit.decode(in)) { //TODO: check the version is correct - QPID_LOG(debug, "RECV " << identifier << " INIT(" << protocolInit << ")"); + QPID_LOG(debug, "RECV [" << identifier << "]: INIT(" << protocolInit << ")"); } initiated = true; } AMQFrame frame; while(frame.decode(in)){ - QPID_LOG(trace, "RECV " << identifier << ": " << frame); + QPID_LOG(trace, "RECV [" << identifier << "]: " << frame); input->received(frame); } return size - in.available(); diff --git a/cpp/src/qpid/client/SslConnector.cpp b/cpp/src/qpid/client/SslConnector.cpp index 26c2335eda..6b6bf884ec 100644 --- a/cpp/src/qpid/client/SslConnector.cpp +++ b/cpp/src/qpid/client/SslConnector.cpp @@ -281,7 +281,7 @@ void SslConnector::Writer::handle(framing::AMQFrame& frame) { lastEof = frames.size(); aio->notifyPendingWrite(); } - QPID_LOG(trace, "SENT " << identifier << ": " << frame); + QPID_LOG(trace, "SENT [" << identifier << "]: " << frame); } void SslConnector::Writer::writeOne() { @@ -328,13 +328,13 @@ void SslConnector::readbuff(SslIO& aio, SslIO::BufferBase* buff) { framing::ProtocolInitiation protocolInit; if (protocolInit.decode(in)) { //TODO: check the version is correct - QPID_LOG(debug, "RECV " << identifier << " INIT(" << protocolInit << ")"); + QPID_LOG(debug, "RECV [" << identifier << "]: INIT(" << protocolInit << ")"); } initiated = true; } AMQFrame frame; while(frame.decode(in)){ - QPID_LOG(trace, "RECV " << identifier << ": " << frame); + QPID_LOG(trace, "RECV [" << identifier << "]: " << frame); input->received(frame); } // TODO: unreading needs to go away, and when we can cope diff --git a/cpp/src/qpid/client/TCPConnector.cpp b/cpp/src/qpid/client/TCPConnector.cpp index 0070b24ec0..4660a41c07 100644 --- a/cpp/src/qpid/client/TCPConnector.cpp +++ b/cpp/src/qpid/client/TCPConnector.cpp @@ -254,7 +254,7 @@ size_t TCPConnector::encode(const char* buffer, size_t size) Mutex::ScopedLock l(lock); while (!frames.empty() && out.available() >= frames.front().encodedSize() ) { frames.front().encode(out); - QPID_LOG(trace, "SENT " << identifier << ": " << frames.front()); + QPID_LOG(trace, "SENT [" << identifier << "]: " << frames.front()); frames.pop_front(); if (lastEof) --lastEof; } @@ -289,7 +289,7 @@ size_t TCPConnector::decode(const char* buffer, size_t size) if (!initiated) { framing::ProtocolInitiation protocolInit; if (protocolInit.decode(in)) { - QPID_LOG(debug, "RECV " << identifier << " INIT(" << protocolInit << ")"); + QPID_LOG(debug, "RECV [" << identifier << "]: INIT(" << protocolInit << ")"); if(!(protocolInit==version)){ throw Exception(QPID_MSG("Unsupported version: " << protocolInit << " supported version " << version)); @@ -299,7 +299,7 @@ size_t TCPConnector::decode(const char* buffer, size_t size) } AMQFrame frame; while(frame.decode(in)){ - QPID_LOG(trace, "RECV " << identifier << ": " << frame); + QPID_LOG(trace, "RECV [" << identifier << "]: " << frame); input->received(frame); } return size - in.available(); |
