← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1675176] [NEW] customization of operational log format does not work

 

Public bug reported:

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"}]

** Affects: horizon
     Importance: Medium
     Assignee: Akihiro Motoki (amotoki)
         Status: New

** Changed in: horizon
   Importance: Undecided => Medium

** Changed in: horizon
     Assignee: (unassigned) => Akihiro Motoki (amotoki)

-- 
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):
  New

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


Follow ups