← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1419588] Re: move exception_to_str behavior to common place

 

exception_to_str was removed in 1c186e23fd593ddbfb977cb7846c1a59e5aeece2
and replaced with oslo_utils.encodeutils.exception_to_unicode. I'll mark
this as fixed.

** Changed in: glance
       Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1419588

Title:
  move  exception_to_str behavior to common place

Status in Glance:
  Fix Released

Bug description:
  The function exception_to_str() has a history
  https://review.openstack.org/#/c/37421/ and it makes:

  LOG.warn('The bug is %s: ' % e)

  to

  LOG.warn(The bug is %s: ' % exception_to_str(e))

  It's not so concise, because the log message writer would care about
  python encoding issues when they writing something. We could move the
  behavior of using this function to GlanceException.__init__, and more
  codes could keep better readability. And the best benefit in mind is
  that once we change original ideas
  https://review.openstack.org/#/c/37421/ someday, we could only fix a
  small amount of codes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1419588/+subscriptions



References