If a common message is not being used, they should each be treated separately with respect to choosing a marker function
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Glance |
Low
|
weiweigu | ||
| Magnum |
Fix Released
|
Undecided
|
weiweigu | |
| OpenStack Dashboard (Horizon) |
Undecided
|
Unassigned | ||
| Solum |
Undecided
|
YaoZheng_ZTE | ||
| glance_store |
Undecided
|
jingtao liang | ||
| neutron |
Undecided
|
Mitya Eremeev | ||
| oslo.log |
Undecided
|
jingtao liang |
Bug Description
Follow the http://
For example, do not do this:
# WRONG
LOG.exception(
raise LocalExceptionC
Instead, use this style:
# RIGHT
LOG.exception(
raise LocalExceptionC
And oslo.log has the problem,we shuld correct it.
Changed in oslo.log: | |
assignee: | nobody → jingtao liang (liang-jingtao) |
Changed in glance-store: | |
assignee: | nobody → jingtao liang (liang-jingtao) |
Changed in glance-store: | |
status: | New → In Progress |
Changed in oslo.log: | |
status: | New → In Progress |
Fix proposed to branch: master
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit c426a42ccd9cab3
Author: liangjingtao <email address hidden>
Date: Mon Jul 11 20:12:36 2016 +0800
Replace "LOG.exception(_" with "LOG.exception(_LE"
Follow http://
If a common message is not being used, they should each betreated
separately with respect to choosing a marker function.So this patch
is to fix it.
Change-Id: I07945d82320d9f
Closes-Bug: #1600788
Changed in oslo.log: | |
status: | In Progress → Fix Released |
Changed in oslo.i18n: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in ceilometer: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in oslo.i18n: | |
status: | New → Invalid |
Fix proposed to branch: master
Review: https:/
Changed in ceilometer: | |
status: | New → In Progress |
Changed in cinder: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in solum: | |
assignee: | nobody → YaoZheng_ZTE (zheng-yao1) |
Changed in cinder: | |
status: | New → Invalid |
Changed in glance: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in horizon: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in keystone: | |
assignee: | nobody → weiweigu (gu-weiwei) |
no longer affects: | cinder |
no longer affects: | oslo.i18n |
Changed in neutron: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Fix proposed to branch: master
Review: https:/
Changed in glance: | |
status: | New → In Progress |
This issue was fixed in the openstack/oslo.log 3.12.0 release.
Brandon Logan (brandon-logan) wrote : | #7 |
for neutron, using the following grep does not return any violations:
$ grep -PRn --exclude-dir=.tox --exclude-
Howver, there are some that create the message before doing the LOG.exception call and looks like some of those do the _(.
$ grep -PRn --exclude-dir=.tox --exclude-
./neutron/
./neutron/
./neutron/
./neutron/
./neutron/
./neutron/
./neutron/
./neutron/
./neutron/
./neutron/
Changed in neutron: | |
status: | New → Triaged |
tags: | added: low-hanging-fruit |
Changed in glance: | |
importance: | Undecided → Low |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 14ccf5986e0423a
Author: weiweigu <email address hidden>
Date: Tue Jul 12 21:12:04 2016 +0800
Replace "LOG.warn(_" with "LOG.(_LW"
Follow http://
If a common message is not being used, they should each betreated
separately with respect to choosing a marker function.So this patch
is to fix it.
Change-Id: Id122aa6395c534
Closes-Bug: #1600788
Changed in glance: | |
status: | In Progress → Fix Released |
no longer affects: | keystone |
Changed in congress: | |
assignee: | nobody → weiweigu (gu-weiwei) |
Changed in magnum: | |
assignee: | nobody → weiweigu (gu-weiwei) |
no longer affects: | congress |
Fix proposed to branch: master
Review: https:/
Changed in magnum: | |
status: | New → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit ec729d6cc686f0a
Author: weiweigu <email address hidden>
Date: Fri Jul 15 15:26:02 2016 +0800
Replace "LOG.info(_" with "LOG.info(_LI"
Follow http://
If a common message is not being used, they should each betreated
separately with respect to choosing a marker function.So this patch
is to fix it.
Change-Id: If7a74ce983ad0c
Closes-Bug: #1600788
Changed in magnum: | |
status: | In Progress → Fix Released |
Change abandoned by Nikhil Komawar (<email address hidden>) on branch: master
Review: https:/
Reason: as per agreement
This issue was fixed in the openstack/magnum 3.0.0 release.
This issue was fixed in the openstack/glance 13.0.0.0b3 development milestone.
Change abandoned by gordon chung (<email address hidden>) on branch: master
Review: https:/
Reason: stale
no longer affects: | ceilometer |
Changed in glance-store: | |
status: | In Progress → Fix Released |
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Low |
milestone: | none → next |
Akihiro Motoki (amotoki) wrote : | #16 |
Horizon does not use oslo.log for logging. Horizon depends on Django and logging is also handled via django and python standard logging. In the horizon messaging policy, logging messages are not translated and other user visible message are translated via django translation marker. (Note that _ has a different meaning in horizon.)
There were similar situation in horizon, but it was clean up as bug 1406333.
Marking this as Won't Fix in horizon. In horizon there is nothing to do more.
Changed in horizon: | |
status: | Confirmed → Won't Fix |
assignee: | weiweigu (gu-weiwei) → nobody |
milestone: | next → none |
importance: | Low → Undecided |
Mitya Eremeev (mitos) wrote : | #17 |
At the moment documentation is controversial.
I submitted a bug regarding the issue:
https:/
Changed in neutron: | |
assignee: | weiweigu (gu-weiwei) → Mitya Eremeev (mitos) |
status: | Triaged → In Progress |
Fix proposed to branch: master /review. openstack. org/340329
Review: https:/