qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1555201 - /qpid/trunk/qpid/cpp/src/qpid/log/Selector.cpp
Date Fri, 03 Jan 2014 18:54:40 GMT
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


Mime
View raw message