commit 108501a8c130f4b013c75603b0263f585f6ba535
Author: Janie Richling <email address hidden>
Date: Sat Mar 11 13:30:35 2017 -0600
Log the correct request type of a subrequest downstream of copy
Before this change, subrequests made while servicing a copy would
result in logging the request type from the copy PUT/GET request
instead of the type from the subrequest being logged.
In order to have the correct requst type logged for subrequests:
- Changed subrequest environments to not inherit the orig_req_method
of the enclosing request.
- Changed copy to be more picky about when it sets orig_req_method
In addition, subrequest environments will no longer inherit the
swift.log_info from the enclosing request. That inheritance had
been added at Ic96a92e938589a2f6add35a40741fd062f1c29eb
along with swift.orig_req_method.
Reviewed: https:/ /review. openstack. org/444604 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=108501a8c13 0f4b013c75603b0 263f585f6ba535
Committed: https:/
Submitter: Jenkins
Branch: master
commit 108501a8c130f4b 013c75603b0263f 585f6ba535
Author: Janie Richling <email address hidden>
Date: Sat Mar 11 13:30:35 2017 -0600
Log the correct request type of a subrequest downstream of copy
Before this change, subrequests made while servicing a copy would
result in logging the request type from the copy PUT/GET request
instead of the type from the subrequest being logged.
In order to have the correct requst type logged for subrequests:
- Changed subrequest environments to not inherit the orig_req_method
of the enclosing request.
- Changed copy to be more picky about when it sets orig_req_method
In addition, subrequest environments will no longer inherit the 2f6add35a40741f d062f1c29eb req_method.
swift.log_info from the enclosing request. That inheritance had
been added at Ic96a92e938589a
along with swift.orig_
Change-Id: I1ccb2665b6cd28 87659e548e55a26 aa00de879e3
Closes-Bug: #1657246