You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2014/01/03 19:54:40 UTC
svn commit: r1555201 - /qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp
Author: astitcher
Date: Fri Jan 3 18:54:40 2014
New Revision: 1555201
URL: http://svn.apache.org/r1555201
Log:
QPID-5427: Critical log messages should not ever be disabled
Modified:
qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp?rev=1555201&r1=1555200&r2=1555201&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp Fri Jan 3 18:54:40 2014
@@ -220,6 +220,8 @@ bool Selector::isDisabled(Level level, c
// 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])
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org