-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1249] Add headers to outgoing requests logging #539
[#1249] Add headers to outgoing requests logging #539
Conversation
@@ -30,7 +31,7 @@ def install_outgoing_requests_logging(): | |||
Session._original_request = Session.request | |||
|
|||
def new_request(self, *args, **kwargs): | |||
kwargs.setdefault("hooks", {"response": hook_requests_logging}) | |||
self.hooks["response"].append(hook_requests_logging) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was changed in case we add more hooks to the session
Codecov Report
@@ Coverage Diff @@
## develop #539 +/- ##
========================================
Coverage 96.47% 96.48%
========================================
Files 540 541 +1
Lines 19216 19243 +27
========================================
+ Hits 18539 18566 +27
Misses 677 677
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing a test (modification) for the header saving
And looking at the code I miss test for some other properties? Like the two content-type's and params.
a702f21
to
179464a
Compare
No description provided.