[hopem,r=]
Set log level to DEBUG in /etc/logging.conf of debug is True Closes-Bug: 1407317
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user