]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: do not use cct unless i have to
authorKefu Chai <kchai@redhat.com>
Fri, 26 Apr 2019 03:39:12 +0000 (11:39 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 16:12:57 +0000 (00:12 +0800)
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 <kchai@redhat.com>
src/auth/AuthSessionHandler.cc

index 9a03138ca2e9b2491421ec978c2f69630e365e0f..d7ad21831edea3ffd9f73d1a27a932307d46149b 100644 (file)
@@ -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.