From: Kefu Chai Date: Fri, 26 Apr 2019 03:39:12 +0000 (+0800) Subject: auth: do not use cct unless i have to X-Git-Tag: v15.1.0~2803^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=adc65bcbe4fd09aeea7e87a278961051470f0b08;p=ceph.git 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 --- diff --git a/src/auth/AuthSessionHandler.cc b/src/auth/AuthSessionHandler.cc index 9a03138ca2e9..d7ad21831ede 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.