[hopem,r=]

Set log level to DEBUG in /etc/logging.conf of debug is True

Closes-Bug: 1407317
This commit is contained in:
Edward Hope-Morley
2015-01-08 11:51:28 +00:00
parent 2dd7e5d537
commit 695a73b1f0
4 changed files with 95 additions and 0 deletions

View File

@@ -134,3 +134,14 @@ class KeystoneContext(context.OSContextGenerator):
resolve_address(ADMIN),
api_port('keystone-admin')).rstrip('v2.0')
return ctxt
class KeystoneLoggingContext(context.OSContextGenerator):
def __call__(self):
ctxt = {}
debug = config('debug')
if debug and debug.lower() in ['yes', 'true']:
ctxt['root_level'] = 'DEBUG'
return ctxt