keyerror:"tenat_name" happened when writing log

Bug #1527037 reported by zengchen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
Unassigned

Bug Description

The name "tenant_name" should be changed to "project_name" on the config item "logging_context_format_string" in the file "/etc/smaug/smaug.conf". Otherwise, keyerror:"tenant_name" will happen when writing log, because there is not a item named "tenant_name" in the parameter when executing the code "self._fmt % record.__dict__"

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to smaug (master)

Reviewed: https://review.openstack.org/258840
Committed: https://git.openstack.org/cgit/openstack/smaug/commit/?id=2d5c24fd3d25efcd3feaf18b921696733a1c4cdd
Submitter: Jenkins
Branch: master

commit 2d5c24fd3d25efcd3feaf18b921696733a1c4cdd
Author: zengchen <email address hidden>
Date: Thu Dec 17 15:11:56 2015 +0800

    Fix the keyerror:"tenant_name" when writing log

    The name "tenant_name" should be changed to "project_name" on the
    config item "logging_context_format_string" in the file
    "/etc/smaug/smaug.conf". Otherwise, keyerror:"tenant_name" will
    happen when writing log, because there is not a item named
    "tenant_name" in the parameter "record.__dict__" when executing
    the code "self._fmt % record.__dict__".

    Closes-Bug: #1527037
    Change-Id: Ic70d1c18d43f75ea3ead4a1003ffeba39b39b846

Changed in smaug:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.