Zun

Put the LOG outside of "with" statement.

Bug #1754317 reported by weikeyou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
In Progress
Undecided
weikeyou

Bug Description

The following usage of with:
with ... as ..:
  try:
    LOG.info("....")
    statement A;
  except Exception as e:
    LOG.error(".....")
if some errors occur in statement A, we can't get the info or debug logs.

weikeyou (weikeyou)
Changed in zun:
assignee: nobody → weikeyou (weikeyou)
description: updated
weikeyou (weikeyou)
description: updated
description: updated
weikeyou (weikeyou)
description: updated
description: updated
Changed in zun:
status: New → In Progress
weikeyou (weikeyou)
summary: - Modifying the usage of the ’with‘ and ’try‘
+ Put the LOG outside of "with" statement.
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on zun (master)

Change abandoned by weikeyou (<email address hidden>) on branch: master
Review: https://review.openstack.org/551046

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.