misuse of log marker functions in neutron
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Haifeng.Yan |
Bug Description
ref http://
" The log marker functions (_LI(), _LW(), _LE(), and _LC()) must only be used when the message is only sent directly to the log. Anytime that the message will be passed outside of the current context (for example as part of an exception) the _() marker function must be used.
"
and http://
"
except AnException1:
# Log only
LOG.
except AnException2:
# Raise only
raise RuntimeError(
else:
# Log and Raise
msg = _('Unexpected error message')
LOG.
raise RuntimeError(msg)
"
there several misuses in neutron code now,
https:/
https:/
https:/
...
tags: | added: logging |
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/242900
Review: https:/