From d0a9f65cbb18ee2e6eaabd6f2ae065e8ec37d411 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 25 Nov 2008 16:55:20 +0000 Subject: Clean up logging a bit: only warn once, not for every connection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720538 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SaslAuthenticator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/src/qpid/broker/SaslAuthenticator.cpp b/cpp/src/qpid/broker/SaslAuthenticator.cpp index 6c6ddd63cb..4cbc3898f8 100644 --- a/cpp/src/qpid/broker/SaslAuthenticator.cpp +++ b/cpp/src/qpid/broker/SaslAuthenticator.cpp @@ -121,6 +121,7 @@ std::auto_ptr SaslAuthenticator::createAuthenticator(Connecti if (c.getBroker().getOptions().auth) { return std::auto_ptr(new CyrusAuthenticator(c)); } else { + QPID_LOG(warning, "SASL: No Authentication Performed"); return std::auto_ptr(new NullAuthenticator(c)); } } @@ -136,7 +137,6 @@ void NullAuthenticator::getMechanisms(Array& mechanisms) void NullAuthenticator::start(const string& mechanism, const string& response) { - QPID_LOG(warning, "SASL: No Authentication Performed"); if (mechanism == "PLAIN") { // Old behavior if (response.size() > 0 && response[0] == (char) 0) { string temp = response.substr(1); -- cgit v1.2.1