Bad error reporting on InternalError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Swift3 |
New
|
Undecided
|
Unassigned |
Bug Description
Bad logging for around InternalError - missing details:
2017-03-05 16:26:39 -07:00 storage01 [local0.err] proxy-server: 500 Internal Server Error:
Traceback (most recent call last):
File "/opt/swift/
resp = self.handle_
File "/opt/swift/
res = handler(req)
File "/opt/swift/
resp = req.get_
File "/opt/swift/
headers, body, query)
File "/opt/swift/
raise InternalError(
InternalError: 500 Internal Server Error (txn: tx63d0123132224
What was the unexpected status code!?
In [14]: str(swift3.
Out[14]: '500 Internal Server Error'
I looked at the inheritance of swift3's ErrorResponse [1] and the implementation of swob's HTTPException [2] - I think we can do better than just log the str of the exception in swift3 [3]
1. https:/ /github. com/openstack/ swift3/ blob/cd094eea4a 0da214d11b67ee6 371629379afee1f /swift3/ response. py#L154 /github. com/openstack/ swift/blob/ 31ccc2740a6c507 42f8878fd4816d7 4c2c1849b0/ swift/common/ swob.py# L1384 /github. com/openstack/ swift3/ blob/cd094eea4a 0da214d11b67ee6 371629379afee1f /swift3/ middleware. py#L85
2. https:/
3. https:/