keyerror:"tenat_name" happened when writing log
Bug #1527037 reported by
zengchen
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_
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/258840 /git.openstack. org/cgit/ openstack/ smaug/commit/ ?id=2d5c24fd3d2 5efcd3feaf18b92 1696733a1c4cdd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2d5c24fd3d25efc d3feaf18b921696 733a1c4cdd
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 context_ format_ string" in the file smaug/smaug. conf". Otherwise, keyerror: "tenant_ name" will
config item "logging_
"/etc/
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 ea3ead4a1003ffe ba39b39b846
Change-Id: Ic70d1c18d43f75