From 6502cce999a8276679e6a74049f739483a3fe7dd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 28 Jan 2010 19:42:48 +0000 Subject: 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 --- cpp/src/qpid/assert.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/assert.cpp') 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 #include #include "qpid/framing/reply_exceptions.h" +#include "qpid/log/Statement.h" #include 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 -- cgit v1.2.1