diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-02-18 23:33:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-02-18 23:33:56 +0000 |
| commit | f494d14d5e5fa27bc6799bcca267d4a129d20531 (patch) | |
| tree | 4b7806ec0e9f8193c5faa31adde4b439dadc7e7b | |
| parent | b1bfca2501ad11a861c9064b97b7fa06fc6d958e (diff) | |
| parent | 8a2a2c724981b850729fcde20360679edd8b0769 (diff) | |
Merge "Silence routes internal debug logging"
| -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 5abbc468..4c9a90bf 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 @@ -418,6 +420,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) |
