Merge "Remove unnecessary credential sanitation for logging"

This commit is contained in:
Jenkins
2016-10-07 12:10:08 +00:00
committed by Gerrit Code Review

View File

@@ -162,7 +162,6 @@ def authorize(context, action, target, do_raise=True, exc=None):
with excutils.save_and_reraise_exception():
LOG.exception(_LE('Policy not registered'))
except Exception:
credentials.pop('auth_token', None)
with excutils.save_and_reraise_exception():
LOG.debug('Policy check for %(action)s failed with credentials '
'%(credentials)s',