From fccfa39dff25918386e37bf4f6998b37d59946ef Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Tue, 19 Feb 2013 17:29:04 +0100 Subject: Fixed logging usage instead of LOG Change-Id: Ic181f7a453e3a72c4e2adc7894038f9256f33f0d --- keystone/common/wsgi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py index 018041d7..08540b6a 100644 --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -242,10 +242,10 @@ class Application(BaseApplication): LOG.warning(e) return render_exception(e) except TypeError as e: - logging.exception(e) + LOG.exception(e) return render_exception(exception.ValidationError(e)) except Exception as e: - logging.exception(e) + LOG.exception(e) return render_exception(exception.UnexpectedError(exception=e)) if result is None: @@ -288,13 +288,13 @@ class Application(BaseApplication): try: creds['user_id'] = user_token_ref['user'].get('id') except AttributeError: - logging.debug('Invalid user') + LOG.debug('Invalid user') raise exception.Unauthorized() try: creds['tenant_id'] = user_token_ref['tenant'].get('id') except AttributeError: - logging.debug('Invalid tenant') + LOG.debug('Invalid tenant') raise exception.Unauthorized() # NOTE(vish): this is pretty inefficient -- cgit