summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
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
commit3130ec0a9ea6bf541d0b365c0eb2081f67224474 (patch)
tree76639d159edc279ff30a37b2135b603168b712ff /qpid/cpp/src
parentf752022b87b8def8595e66f2587a4c7e3c92744f (diff)
downloadqpid-python-3130ec0a9ea6bf541d0b365c0eb2081f67224474.tar.gz
QPID-5427: Critical log messages should not ever be disabled
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1555201 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/log/Selector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/log/Selector.cpp b/qpid/cpp/src/qpid/log/Selector.cpp
index 9f52242694..a517cb34f4 100644
--- a/qpid/cpp/src/qpid/log/Selector.cpp
+++ b/qpid/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])