summaryrefslogtreecommitdiff
path: root/keystoneclient/middleware
diff options
context:
space:
mode:
authorAmalaBasha <amala.alungal@RACKSPACE.COM>2013-09-03 15:51:59 +0530
committerAmalaBasha <amala.alungal@RACKSPACE.COM>2013-09-10 10:46:27 +0530
commitd40a9f4f6e10feb806d2ee4dd6266c948e7e6645 (patch)
tree877a9500ea8bab44a2eb8b3f02aca12cf3f12c86 /keystoneclient/middleware
parentd6eb5021edec7ecafb1fa7e84a8c43480a4ba3e1 (diff)
downloadpython-keystoneclient-d40a9f4f6e10feb806d2ee4dd6266c948e7e6645.tar.gz
Log user info in auth_token middleware
Add logging for user information (like user name, tenant_id, roles) in the auth_token middleware. This would make tracking down issues much easier. Change-Id: Ife4ce29d2f8e1a338a025dda4afbd7b563f6b8c1 Implements: blueprint user-info-logging-in-auth-token-middleware
Diffstat (limited to 'keystoneclient/middleware')
-rw-r--r--keystoneclient/middleware/auth_token.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/keystoneclient/middleware/auth_token.py b/keystoneclient/middleware/auth_token.py
index 6dc7c93..da32a50 100644
--- a/keystoneclient/middleware/auth_token.py
+++ b/keystoneclient/middleware/auth_token.py
@@ -900,6 +900,9 @@ class AuthProtocol(object):
'X-Role': roles,
}
+ self.LOG.debug("Received request from user: %s with project_id : %s"
+ " and roles: %s ", user_id, project_id, roles)
+
try:
catalog = catalog_root[catalog_key]
rval['X-Service-Catalog'] = jsonutils.dumps(catalog)