String interpolation should be delayed at logging calls
Bug #1596829 reported by
Takashi Natsume
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Wishlist
|
weiweigu | ||
Glance Client |
Fix Released
|
Undecided
|
haobing1 | ||
Glare |
Fix Released
|
Undecided
|
Unassigned | ||
Ironic |
Fix Released
|
Undecided
|
Bharath kumar | ||
OpenStack Compute (nova) |
Fix Released
|
Low
|
Takashi Natsume | ||
OpenStack Identity (keystone) |
Fix Released
|
Low
|
LiChunlin | ||
Zun |
Fix Released
|
Undecided
|
feng.shengqin@zte.com.cn | ||
congress |
Fix Released
|
Undecided
|
Takashi Natsume | ||
ec2-api |
Confirmed
|
Low
|
Unassigned | ||
glance_store |
In Progress
|
Wishlist
|
haobing1 | ||
masakari |
Fix Released
|
Low
|
Takashi Natsume | ||
networking-vsphere |
Fix Released
|
Undecided
|
Aman Kumar | ||
os-brick |
Fix Released
|
Low
|
weiweigu | ||
os-vif |
Fix Released
|
Undecided
|
Takashi Natsume | ||
python-manilaclient |
Fix Released
|
Undecided
|
Gábor Antal | ||
python-openstackclient |
Fix Released
|
Undecided
|
Gábor Antal | ||
python-troveclient |
Fix Released
|
Undecided
|
jian.song | ||
senlin |
Invalid
|
Undecided
|
Unassigned | ||
watcher |
Fix Released
|
Undecided
|
Alexander Chadin |
Bug Description
String interpolation should be delayed to be handled by the logging code, rather than being done at the point of the logging call.
Wrong: LOG.debug('Example: %s' % 'bad')
Right: LOG.debug('Example: %s', 'good')
See the following guideline.
* http://
The rule for it should be added to hacking checks.
Changed in nova: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
status: | New → In Progress |
Changed in neutron: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in cinder: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in glance: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in os-brick: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in python-cinderclient: | |
assignee: | nobody → haobing1 (haobing1) |
Changed in python-glanceclient: | |
assignee: | nobody → haobing1 (haobing1) |
Changed in glance-store: | |
assignee: | nobody → haobing1 (haobing1) |
Changed in ceilometer: | |
assignee: | nobody → haobing1 (haobing1) |
Changed in keystone: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in ironic: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in heat: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in swift: | |
assignee: | nobody → haobing1 (haobing1) |
Changed in taskflow: | |
assignee: | nobody → haobing1 (haobing1) |
Changed in networking-vsphere: | |
assignee: | nobody → Aman Kumar (amank) |
no longer affects: | python-cinderclient |
Changed in python-cinderclient: | |
assignee: | nobody → haobing1 (haobing1) |
tags: | added: neutron-proactive-backport-potential |
Changed in python-neutronclient: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
no longer affects: | keystone |
Changed in murano: | |
assignee: | nobody → LiuNanke (nanke-liu) |
status: | New → In Progress |
Changed in os-vif: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
Changed in masakari: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
Changed in masakari: | |
importance: | Undecided → Low |
Changed in murano: | |
importance: | Undecided → Low |
milestone: | none → newton-3 |
Changed in congress: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
no longer affects: | murano |
no longer affects: | taskflow |
no longer affects: | swift |
Changed in heat: | |
assignee: | weiweigu (gu-weiwei) → Bathri Ajay Raj (bathri-s) |
tags: | removed: neutron-proactive-backport-potential |
no longer affects: | ceilometer |
Changed in python-manilaclient: | |
assignee: | nobody → Gábor Antal (gabor.antal) |
Changed in python-troveclient: | |
status: | In Progress → New |
Changed in python-cinderclient: | |
importance: | Undecided → Low |
Changed in os-brick: | |
importance: | Undecided → Low |
Changed in python-troveclient: | |
status: | New → In Progress |
Changed in python-openstackclient: | |
assignee: | nobody → Gábor Antal (gabor.antal) |
no longer affects: | heat |
Changed in senlin: | |
assignee: | nobody → huangtianhua (huangtianhua) |
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
no longer affects: | heat |
Changed in senlin: | |
status: | New → Invalid |
assignee: | huangtianhua (huangtianhua) → nobody |
Changed in python-troveclient: | |
assignee: | Gábor Antal (gabor.antal) → jian.song (jiansong) |
Changed in horizon: | |
assignee: | nobody → Akihiro Motoki (amotoki) |
status: | New → In Progress |
Changed in horizon: | |
assignee: | Akihiro Motoki (amotoki) → Gábor Antal (gabor.antal) |
Changed in sahara: | |
assignee: | nobody → pawnesh kumar (pawnesh.kumar) |
Changed in horizon: | |
assignee: | Gábor Antal (gabor.antal) → Akihiro Motoki (amotoki) |
Changed in horizon: | |
assignee: | Akihiro Motoki (amotoki) → Gábor Antal (gabor.antal) |
importance: | Undecided → Low |
milestone: | none → pike-1 |
no longer affects: | python-neutronclient |
no longer affects: | neutron |
no longer affects: | sahara |
Changed in ec2-api: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in zun: | |
assignee: | nobody → feng.shengqin@zte.com.cn (feng-shengqin) |
no longer affects: | cinder |
no longer affects: | python-cinderclient |
Changed in keystone: | |
assignee: | nobody → LiChunlin (lichl) |
Changed in watcher: | |
assignee: | nobody → LiChunlin (lichl) |
Changed in keystone: | |
importance: | Undecided → Low |
milestone: | none → pike-3 |
Changed in zun: | |
status: | In Progress → Fix Released |
Changed in glare: | |
status: | New → Fix Released |
Changed in watcher: | |
assignee: | LiChunlin (lichl) → Alexander Chadin (joker946) |
status: | In Progress → Fix Committed |
Changed in watcher: | |
status: | Fix Committed → Fix Released |
no longer affects: | horizon |
Changed in glance: | |
importance: | Undecided → Wishlist |
Changed in glance-store: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/334844
Review: https:/