Codebase list python-castellan / d2e8437
Remove redundant override of logging_context_format_string The target value is exactly same as the default defined in oslo.log, thus this override is just redundant. Change-Id: I91fcc035526d655f0b885f5b6a176dc18577a3a3 Takashi Kajinami 2 years ago
1 changed file(s) with 1 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
3030 from castellan.common import utils
3131
3232 _DEFAULT_LOG_LEVELS = ['castellan=WARN']
33
34 _DEFAULT_LOGGING_CONTEXT_FORMAT = ('%(asctime)s.%(msecs)03d %(process)d '
35 '%(levelname)s %(name)s [%(request_id)s '
36 '%(user_identity)s] %(instance)s'
37 '%(message)s')
3833
3934
4035 def set_defaults(conf, backend=None, barbican_endpoint=None,
149144 conf = conf or cfg.CONF
150145
151146 log.register_options(conf)
152 log.set_defaults(_DEFAULT_LOGGING_CONTEXT_FORMAT,
153 _DEFAULT_LOG_LEVELS)
147 log.set_defaults(default_log_levels=_DEFAULT_LOG_LEVELS)
154148
155149 log.setup(conf, app_name)
156150