Log upload failed exception trace rather than debug
We're seeing race failures in test_register_http_image
in the gate due to a 500 coming back from the backing
store when uploading the image in the v1 API, but it's
logged at debug level so we can't fingerprint on the
failure in logstash.
This changes bumps the logging of the error from debug
to exception so we get the trace on the error also.
If it turns out that we have expected exception cases
in the future and tracing on those isn't necessary,
we can filter them out in a separate change.
Reviewed: https:/ /review. openstack. org/109115 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=ff3161a506e fba42f09fa403cf 875a5a4ec56c0c
Committed: https:/
Submitter: Jenkins
Branch: master
commit ff3161a506efba4 2f09fa403cf875a 5a4ec56c0c
Author: Matt Riedemann <email address hidden>
Date: Wed Jul 23 13:41:09 2014 -0700
Log upload failed exception trace rather than debug
We're seeing race failures in test_register_ http_image
in the gate due to a 500 coming back from the backing
store when uploading the image in the v1 API, but it's
logged at debug level so we can't fingerprint on the
failure in logstash.
This changes bumps the logging of the error from debug
to exception so we get the trace on the error also.
If it turns out that we have expected exception cases
in the future and tracing on those isn't necessary,
we can filter them out in a separate change.
Change-Id: I87d1f8ae584b41 456eae4f19a0bc6 0f13f47b5ac
Related-Bug: #1347692