Skip to content

Conversation

@matthewpoer
Copy link
Contributor

Minor formatting improvements. Fixes #260.

Minor formatting improvements. Fixes #260.
@codecov
Copy link

codecov bot commented Aug 5, 2019

Codecov Report

Merging #261 into v1.x will decrease coverage by 0.23%.
The diff coverage is 78.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##             v1.x     #261      +/-   ##
==========================================
- Coverage   96.17%   95.93%   -0.24%     
==========================================
  Files           9        9              
  Lines        1123     1131       +8     
==========================================
+ Hits         1080     1085       +5     
- Misses         23       25       +2     
- Partials       20       21       +1
Impacted Files Coverage Δ
middleware.go 91.25% <100%> (ø) ⬆️
util.go 90.57% <66.66%> (-1.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa5875c...5abe760. Read the comment docs.

@jeevatkm jeevatkm self-requested a review September 8, 2019 00:01
Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

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

@matthewpoer Thank you for the PR to improve Resty debug logging.

Could you please retarget your PR to master branch the also add a test case?

fmt.Sprintf("%s %s %s\n", r.Method, rr.URL.RequestURI(), rr.Proto) +
fmt.Sprintf("HOST: %s\n", rr.URL.Host) +
fmt.Sprintf("HEADERS:\n%s\n", composeHeaders(rl.Header)) +
fmt.Sprintf("COOKIES:\n%s\n", composeCookies(c.GetClient().Jar, *rr.URL)) +
Copy link
Member

Choose a reason for hiding this comment

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

@matthewpoer Just remembered one thing. This method focuses on Cookies from Jar and creates a section called COOKIES. Since cookies get separate section in the debug log. I think its better to read request header cookies added by the user into the cookies section finally remove the request header Cookie from headers section. Let me know your thoughts.

@jeevatkm
Copy link
Member

@matthewpoer If it's okay with you. Shall I close this PR and recreate changes from this PR as a branch?

@jeevatkm
Copy link
Member

@matthewpoer I'm planning to make the release of v2.1.0. So, I'm going to take over your PR and apply the required change for the release.

@jeevatkm
Copy link
Member

This PR has been merged via local merge targeting branch master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants