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

Implement debug logging in Cowboy the same way the ssl does #1336

Open
essen opened this issue Nov 9, 2018 · 4 comments
Open

Implement debug logging in Cowboy the same way the ssl does #1336

essen opened this issue Nov 9, 2018 · 4 comments

Comments

@essen
Copy link
Member

essen commented Nov 9, 2018

See http://blog.erlang.org/ssl-logging-in-otp-22/ for a full description.

One could enable debug logging in Cowboy to see all the packets transmitted and what Cowboy thinks of them, something like that. Could make some client issues obvious in particular.

@essen
Copy link
Member Author

essen commented Nov 14, 2018

Also nghttp -v has some pretty good debug logging. Maybe do something similar.

@fredr
Copy link
Contributor

fredr commented Jan 24, 2019

This would be very useful for debugging http2 frames, especially when the service is behind a proxy, and you need to debug frames sent between the backend and the proxy

@jordanfranssen
Copy link

My organization would be particularly interested in logging HTTP headers.

This article gives the guidelines we desire to meet: https://www.stigviewer.com/stig/application_security_and_development/2017-12-18/finding/V-69375

@essen
Copy link
Member Author

essen commented Jun 3, 2020

@jordanfranssen This ticket in particular is about debug logging. It's not meant to be used in production.

If I had to implement HTTP headers logging from scratch I would use cowboy_metrics_h because it keeps track of everything: https://ninenines.eu/docs/en/cowboy/2.8/manual/cowboy_metrics_h/ but since rabbitmq-management already has some access logging maybe you're looking into adding the information to these logs instead.

If you are not familiar with Erlang I am available for consulting or development. I am the author of Cowboy and also work with the RabbitMQ team on a regular basis, so I'm sure I can arrange something depending on your needs. I've done a lot of work on rabbitmq-management. You can find more information about the services I provide and a contact email at https://ninenines.eu/services/

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

No branches or pull requests

3 participants