phoenix_cowboy_logging v2.0.0 PhoenixCowboyLogging

Adds some logging to Cowboy so that we see something if cowboy rejects a request while accepting or parsing it.

When cowboy fails to parse an request it calls onreponse/4 with a completely bogus request. Nothing about it should be trusted.

Link to this section Summary

Functions

Adds the settings needed to enable the logging. This much be called before starting the Phoenix endpoint so it should be called early in every Phoenix application's start function.

Callback that does the logging.

Link to this section Functions

Link to this function

enable_for(otp_app, key)

Adds the settings needed to enable the logging. This much be called before starting the Phoenix endpoint so it should be called early in every Phoenix application's start function.

Link to this function

onresponse(status_code, headers, body, request)

Callback that does the logging.