summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/assert.cpp
diff options
context:
space:
mode:
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