diff options
author | Ionuț Arțăriși <iartarisi@suse.cz> | 2012-08-13 14:26:21 +0200 |
---|---|---|
committer | Ionuț Arțăriși <iartarisi@suse.cz> | 2012-09-03 11:24:33 +0200 |
commit | 861f27f83d9b074f48109b6e00f2af0cd2469ce7 (patch) | |
tree | bf3de5c182b72da93876484d7590bc874beda8b7 /keystone/common/wsgi.py | |
parent | 2759c2239862ebe9bf7b6656936c65753e5c2cfc (diff) | |
download | keystone-861f27f83d9b074f48109b6e00f2af0cd2469ce7.tar.gz keystone-861f27f83d9b074f48109b6e00f2af0cd2469ce7.tar.xz keystone-861f27f83d9b074f48109b6e00f2af0cd2469ce7.zip |
LOG.warn all exception.Unauthorized authentication failures
Fixes bug: 1036161
Change-Id: I45cf27cb6e702a0470243efdb310eb0a65cfd2b0
Diffstat (limited to 'keystone/common/wsgi.py')
-rw-r--r-- | keystone/common/wsgi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py index 43087904..91f38d09 100644 --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -202,6 +202,10 @@ class Application(BaseApplication): try: result = method(context, **params) + except exception.Unauthorized as e: + LOG.warning("Authorization failed. %s from %s" + % (e, req.environ['REMOTE_ADDR'])) + return render_exception(e) except exception.Error as e: LOG.warning(e) return render_exception(e) |