Change token logging from INFO to DEBUG

Change token logging from INFO to DEBUG, so that tokens are not
printed by default, only when the logging level is set to DEBUG.

Change-Id: I4f2e1ee84c82edc41edde93386d6f28f815aa09f
Closes-bug: 1640234
This commit is contained in:
Eric Juma 2016-11-22 19:30:38 +00:00
parent 86901e1ac5
commit f372c0fc45
2 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ def get_client():
@config.MEMOIZE_SESSION
def get_local_auth(user_token):
"""Return a Keystone session for the local cluster."""
LOG.info("Getting session for %s" % user_token)
LOG.debug("Getting session for %s" % user_token)
client = get_client()
token = v3.tokens.TokenManager(client)
@ -67,8 +67,8 @@ def get_unscoped_sp_auth(service_provider, user_token):
"""Perform K2K auth, and return an unscoped session."""
conf = get_conf_for_sp(service_provider)
local_auth = get_local_auth(user_token).auth
LOG.info("Getting unscoped session for (%s, %s)" % (service_provider,
user_token))
LOG.debug("Getting unscoped session for (%s, %s)" % (service_provider,
user_token))
remote_auth = identity.v3.Keystone2Keystone(
local_auth,
conf.sp_name
@ -91,9 +91,9 @@ def get_sp_auth(service_provider, user_token, remote_project_id):
conf = get_conf_for_sp(service_provider)
local_auth = get_local_auth(user_token).auth
LOG.info("Getting session for (%s, %s, %s)" % (service_provider,
user_token,
remote_project_id))
LOG.debug("Getting session for (%s, %s, %s)" % (service_provider,
user_token,
remote_project_id))
remote_auth = identity.v3.Keystone2Keystone(
local_auth,

View File

@ -103,7 +103,7 @@ class RequestHandler(object):
aggregate = True
self.local_token = headers['X-AUTH-TOKEN']
LOG.info('Local Token: %s ' % self.local_token)
LOG.debug('Local Token: %s ' % self.local_token)
if 'MM-SERVICE-PROVIDER' in headers and 'MM-PROJECT-ID' in headers:
# The user wants a specific service provider, use that SP.