summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/AsyncResultQueueImpl.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2012-07-16 13:54:11 +0000
committerKim van der Riet <kpvdr@apache.org>2012-07-16 13:54:11 +0000
commita804510d81ade0594a75b5c9b8765cafcc233245 (patch)
tree8c6be643564b6d8c88619d17de7150c98a314781 /cpp/src/qpid/broker/AsyncResultQueueImpl.cpp
parent1ab07197127e990da2c765ea0ffa5fd8ca47b7b6 (diff)
downloadqpid-python-a804510d81ade0594a75b5c9b8765cafcc233245.tar.gz
QPID-3858: Refactor to tidy up several class design issues
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1362039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/AsyncResultQueueImpl.cpp')
-rw-r--r--cpp/src/qpid/broker/AsyncResultQueueImpl.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/AsyncResultQueueImpl.cpp b/cpp/src/qpid/broker/AsyncResultQueueImpl.cpp
index 62c7ed33d9..ab408be9ca 100644
--- a/cpp/src/qpid/broker/AsyncResultQueueImpl.cpp
+++ b/cpp/src/qpid/broker/AsyncResultQueueImpl.cpp
@@ -21,9 +21,12 @@
* \file AsyncResultQueueImpl.cpp
*/
-#include "AsyncResultHandle.h"
#include "AsyncResultQueueImpl.h"
+#include "AsyncResultHandle.h"
+
+#include "qpid/log/Statement.h"
+
namespace qpid {
namespace broker {
@@ -41,7 +44,6 @@ AsyncResultQueueImpl::~AsyncResultQueueImpl()
void
AsyncResultQueueImpl::submit(boost::shared_ptr<AsyncResultHandle> arh)
{
-//std::cout << "==> AsyncResultQueueImpl::submit() errNo=" << arh->getErrNo() << " errMsg=\"" << arh->getErrMsg() << "\"" << std::endl << std::flush;
m_resQueue.push(arh);
}
@@ -51,15 +53,14 @@ AsyncResultQueueImpl::handle(const ResultQueue::Batch& e)
{
try {
for (ResultQueue::Batch::const_iterator i = e.begin(); i != e.end(); ++i) {
-//std::cout << "<== AsyncResultQueueImpl::handle() errNo=" << (*i)->getErrNo() << " errMsg=\"" << (*i)->getErrMsg() << "\"" << std::endl << std::flush;
if ((*i)->isValid()) {
(*i)->invokeAsyncResultCallback();
}
}
} catch (const std::exception& e) {
- std::cerr << "qpid::broker::AsyncResultQueueImpl: Exception thrown processing async result: " << e.what() << std::endl;
+ QPID_LOG(error, "Exception thrown processing async result: " << e.what());
} catch (...) {
- std::cerr << "qpid::broker::AsyncResultQueueImpl: Unknown exception thrown processing async result" << std::endl;
+ QPID_LOG(error, "Unknown exception thrown processing async result");
}
return e.end();
}