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

Add flag for logging headers #2086

Merged
merged 4 commits into from
Dec 14, 2016
Merged

Add flag for logging headers #2086

merged 4 commits into from
Dec 14, 2016

Conversation

jml
Copy link
Contributor

@jml jml commented Dec 12, 2016

To help fix weaveworks/monitoring#82 (issue with how we record metrics for websockets), we'd like to be able to get detailed request header information in our logs. This adds a flag to do that.

@tomwilkie
Copy link
Contributor

LGTM. Perhaps also log the output of IsWSRequest?

handler = middleware.Log{LogRequestHeaders: true}.Wrap(handler)
} else {
handler = middleware.LogFailed.Wrap(handler)
}

This comment was marked as abuse.

This comment was marked as abuse.

@jml
Copy link
Contributor Author

jml commented Dec 12, 2016

Perhaps also log the output of IsWSRequest?

Not a bad idea, but have to make that change to weaveworks/common.

@jml jml changed the title [WIP] Add flag for logging headers Add flag for logging headers Dec 12, 2016
@jml jml merged commit 3560bbc into master Dec 14, 2016
@jml jml deleted the log-request-headers branch December 14, 2016 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants