[openstack-dev] [devstack][QA] Changing logging format to match documented defaults
Ian Wienand
iwienand at redhat.com
Tue Dec 22 20:22:39 UTC 2015
On 12/23/2015 05:55 AM, Ronald Bradford wrote:
> I have observed that devstack uses custom logging formatting that
> differs from the documented defaults. An example is for nova. which
> is defined in [1]
The original point mentioned there of using "*_name" for extra
verbosity still seems relevant [1]
> logging_context_format_string = %(asctime)s.%(msecs)03d %(levelname)s
> %(name)s [%(request_id)s *%(user_identity)s*] %(instance)s%(message)s
user_identity is still just "{user} {tenant} ..." (which is id's, I
believe?) [2].
> This logging variable is also defined differently across 4
> projects (nova, cinder, keystone and glance) so ultimately the goal would
> be to ensure they may present documented configuration defaults.
Since it's hard enough to debug already when tempest gets going with
multiple users/tenants, I think keeping the verbose logging is worth
it. However, if a bunch of copy-paste setting of this can be
refactored, I'm sure we'd consider it favourably.
-i
[1] http://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=6f13ba33d84b95808fc2a7672f332c1f0494e741
[2] https://git.openstack.org/cgit/openstack/oslo.context/tree/oslo_context/context.py#n43
More information about the OpenStack-dev
mailing list