diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2013-01-18 17:58:32 -0600 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2013-02-04 20:21:29 -0600 |
commit | 8a2a2c724981b850729fcde20360679edd8b0769 (patch) | |
tree | 07a99c9ef748b7719a9ec80ac379210b645a7d73 /keystone/common/wsgi.py | |
parent | a5d01d62aa3e57189b015b865312213f15f5fea3 (diff) | |
download | keystone-8a2a2c724981b850729fcde20360679edd8b0769.tar.gz keystone-8a2a2c724981b850729fcde20360679edd8b0769.tar.xz keystone-8a2a2c724981b850729fcde20360679edd8b0769.zip |
Silence routes internal debug logging
Eliminates this spam while running keystone in debug:
routes.middleware: DEBUG: Initialized with method overriding = True,
and path info altering = True
Change-Id: I1ff1fb13b4bfea968a2ba8fe194141c98541c6b8
Diffstat (limited to 'keystone/common/wsgi.py')
-rw-r--r-- | keystone/common/wsgi.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py index 42a4bc31..1ba584c1 100644 --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -31,10 +31,12 @@ import webob.exc from keystone.common import logging from keystone.common import utils +from keystone import config from keystone import exception from keystone.openstack.common import jsonutils +CONF = config.CONF LOG = logging.getLogger(__name__) # Environment variable used to pass the request context @@ -414,6 +416,11 @@ class Router(object): mapper.connect(None, '/v1.0/{path_info:.*}', controller=BlogApp()) """ + # if we're only running in debug, bump routes' internal logging up a + # notch, as it's very spammy + if CONF.debug: + logging.getLogger('routes.middleware').setLevel(logging.INFO) + self.map = mapper self._router = routes.middleware.RoutesMiddleware(self._dispatch, self.map) |