summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/assert.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-01-28 19:42:48 +0000
committerAlan Conway <aconway@apache.org>2010-01-28 19:42:48 +0000
commit6502cce999a8276679e6a74049f739483a3fe7dd (patch)
tree46570bd6c1a1ef43f93a4e9248eb4d89c84a19d1 /cpp/src/qpid/assert.cpp
parentfe2db915235fdca1c8ed2335e69127b43ee5b835 (diff)
downloadqpid-python-6502cce999a8276679e6a74049f739483a3fe7dd.tar.gz
Fixed cluster error "Not enough for multicast header"
Fixed incorrect test of message size. Added assertions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904232 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/assert.cpp')
-rw-r--r--cpp/src/qpid/assert.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/assert.cpp b/cpp/src/qpid/assert.cpp
index bf36d3be86..801bfa6ae5 100644
--- a/cpp/src/qpid/assert.cpp
+++ b/cpp/src/qpid/assert.cpp
@@ -24,14 +24,16 @@
#include <sstream>
#include <iostream>
#include "qpid/framing/reply_exceptions.h"
+#include "qpid/log/Statement.h"
#include <stdlib.h>
namespace qpid {
void assert_fail(char const * expr, char const * function, char const * file, long line) {
std::ostringstream msg;
- msg << "Internal error: " << expr << " in function " << function
+ msg << "Assertion failed: " << expr << " in function " << function
<< "(" << file << ":" << line << ")";
+ QPID_LOG(critical, msg.str());
#ifdef NDEBUG
throw framing::InternalErrorException(msg.str());
#else