Bad error reporting on InternalError

Bug #1673638 reported by clayg
6
This bug affects 1 person
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/lib/python2.7/site-packages/swift3/middleware.py", line 80, in __call__
    resp = self.handle_request(req)
  File "/opt/swift/lib/python2.7/site-packages/swift3/middleware.py", line 107, in handle_request
    res = handler(req)
  File "/opt/swift/lib/python2.7/site-packages/swift3/controllers/obj.py", line 113, in PUT
    resp = req.get_response(self.app)
  File "/opt/swift/lib/python2.7/site-packages/swift3/request.py", line 1179, in get_response
    headers, body, query)
  File "/opt/swift/lib/python2.7/site-packages/swift3/request.py", line 1164, in _get_response
    raise InternalError('unexpected status code %d' % status)
InternalError: 500 Internal Server Error (txn: tx63d01231322248e697587-0058bc9eaa) (client_ip: 127.0.0.1)

What was the unexpected status code!?

In [14]: str(swift3.response.InternalError('the answer is 42'))
Out[14]: '500 Internal Server Error'

Revision history for this message
clayg (clay-gerrard) wrote :
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.