Skip to content
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

Retain the request body when logging HTTP. #378

Merged
merged 4 commits into from
Aug 21, 2019

Conversation

Harwayne
Copy link
Contributor

Fixes #377

Proposed Changes

  • Retain the request body when logging HTTP.

Release Note

--log-http now works for requests with a body.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 19, 2019
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Harwayne: 0 warnings.

In response to this:

Fixes #377

Proposed Changes

  • Retain the request body when logging HTTP.

Release Note

--log-http now works for requests with a body.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 19, 2019
@navidshaikh
Copy link
Collaborator

Looks good to me.
/assign @sixolet

Copy link
Contributor

@maximilien maximilien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a few tests for this?

@Harwayne
Copy link
Contributor Author

Can we have a few tests for this?

Done.

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/util/logging_http_transport.go 92.6% 86.7% -5.9

@sixolet
Copy link
Contributor

sixolet commented Aug 21, 2019

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Harwayne, sixolet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 21, 2019
@knative-prow-robot knative-prow-robot merged commit 40631a6 into knative:master Aug 21, 2019
@Harwayne Harwayne deleted the log-http-body branch August 21, 2019 19:26
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
dsimansk added a commit to dsimansk/client that referenced this pull request May 15, 2024
* [release-v1.12] Add arm builds

* [release-v1.12] Add arm builds on linux also
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--log-http consumes the Request Body, making it invalid
7 participants