summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2014-01-03 18:54:40 +0000
committerAndrew Stitcher <astitcher@apache.org>2014-01-03 18:54:40 +0000
commit080e478121f6f7102b86b57ce68dbaa631256057 (patch)
treeb8f4601e70b6a79fd726a1547980ca8543727e68 /cpp
parentf9536f7a9f72dd5c7b3f9d9c483aa7353f0ec816 (diff)
downloadqpid-python-080e478121f6f7102b86b57ce68dbaa631256057.tar.gz
QPID-5427: Critical log messages should not ever be disabled
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1555201 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/log/Selector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/log/Selector.cpp b/cpp/src/qpid/log/Selector.cpp
index 9f52242694..a517cb34f4 100644
--- a/cpp/src/qpid/log/Selector.cpp
+++ b/cpp/src/qpid/log/Selector.cpp
@@ -220,6 +220,8 @@ bool Selector::isDisabled(Level level, const char* function) {
// level/function/category set from an actual QPID_LOG Statement.
//
bool Selector::isEnabled(Level level, const char* function, Category category) {
+ if (level==critical)
+ return true; // critical cannot be disabled
if (isDisabled(level, function))
return false; // Disabled by function name
if (disableFlags[level][category])