diff options
| author | Alvaro Lopez Garcia <aloga@ifca.unican.es> | 2013-02-19 17:29:04 +0100 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-16 11:40:10 +0000 |
| commit | fccfa39dff25918386e37bf4f6998b37d59946ef (patch) | |
| tree | e0558d2f51fb0b2a0f36912b612c927f368c9da4 | |
| parent | b4db547d0a681fbf7c8927a8c07c8bb3844582fb (diff) | |
Fixed logging usage instead of LOG
Change-Id: Ic181f7a453e3a72c4e2adc7894038f9256f33f0d
| -rw-r--r-- | keystone/common/wsgi.py | 8 |
1 files 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 |
