From adc65bcbe4fd09aeea7e87a278961051470f0b08 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 26 Apr 2019 11:39:12 +0800 Subject: [PATCH] auth: do not use cct unless i have to crimson messenger's tests does not use ConfigProxy at the time of writing, and ldout() cannot tell if a log message should be written to the logfile or not without querying config subsystem, so, to avoid involving config system in crimson messenger's tests, the log line is disabled if WITH_SEASTAR, we will kill this workaround once we ditch crimson/net/Config.h. Signed-off-by: Kefu Chai --- src/auth/AuthSessionHandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/AuthSessionHandler.cc b/src/auth/AuthSessionHandler.cc index 9a03138ca2e..d7ad21831ed 100644 --- a/src/auth/AuthSessionHandler.cc +++ b/src/auth/AuthSessionHandler.cc @@ -31,9 +31,9 @@ AuthSessionHandler *get_auth_session_handler( { // Should add code to only print the SHA1 hash of the key, unless in secure debugging mode - +#ifndef WITH_SEASTAR ldout(cct,10) << "In get_auth_session_handler for protocol " << protocol << dendl; - +#endif switch (protocol) { case CEPH_AUTH_CEPHX: // if there is no session key, there is no session handler. -- 2.39.5