yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #62559
[Bug 1675176] Re: customization of operational log format does not work
Reviewed: https://review.openstack.org/448798
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=fdb21222b6061c1b42298a9c7d3380a8df6e837a
Submitter: Jenkins
Branch: master
commit fdb21222b6061c1b42298a9c7d3380a8df6e837a
Author: Akihiro Motoki <amotoki@xxxxxxxxx>
Date: Wed Mar 22 21:44:27 2017 +0000
operation_log: Honor settings parameters
Previously 'format' and 'mask_fields' in OPERATION_LOG_OPTIONS
were completely ignored. OPERATION_LOG_OPTIONS is a dict, but
the logic tried to get attributes, so these options were ignored.
Change-Id: Ide4826ebf74218873a81b67aaa0dd817c4798702
Closes-Bug: #1675176
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1675176
Title:
customization of operational log format does not work
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
OPERATION_LOG_OPTIONS['format'] can be specified in local_settings.py,
but it has no effect and the default format is used.
[local_settings.py]
OPERATION_LOG_ENABLED = True
OPERATION_LOG_OPTIONS = {
'mask_fields': ['password'],
'target_methods': ['POST', 'GET'],
'format': ("---------> [%(domain_name)s] [%(domain_id)s] [%(project_name)s]"
" [%(project_id)s] [%(user_name)s] [%(user_id)s] [%(request_scheme)s]"
" [%(referer_url)s] [%(request_url)s] [%(message)s] [%(method)s]"
" [%(http_status)s] [%(param)s]"),
}
[Output]
2017-03-22 21:12:10,857 [None] [None] [demo] [3b91ad8c9c624303aa38334f8fc5349e] [demo] [07c9103fb1fa4a518036b9dd68838c70] [http] [/project/networks/] [/project/networks/create] [None] [POST] [200] [{"gateway_ip": "", "address_source": "subnetpool", "prefixlen": "26", "password": "********", "subnet_name": "subnet2", "csrfmiddlewaretoken": "7KmXLqudvPQHylJ7pZdByTPjb0XlTiaB", "dns_nameservers": "", "subnetpool": "08e5f334-6c24-45c0-90da-15191730298a", "ipv6_modes": "none/none", "net_name": "net2", "allocation_pools": "", "ip_version": "4", "admin_state": "True", "net_profile_id": "", "enable_dhcp": "on", "shared": "False", "cidr": "", "host_routes": "", "with_subnet": "on"}]
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1675176/+subscriptions
References