Pry some information from cowboy when it fails to parse requests.
Elixir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
README.md
mix.exs
mix.lock

README.md

PhoenixCowboyLogging

Add logging of request acceptance and parse errors that happen at the cowboy level to your Phoenix app.

Usage

You must call PhoenixCowboyLogging.enable_for/2 before starting you Phoenix endpoint. This generally means adding it early in the application's start function. For example:

defmodule MyWebApp do
  use Application
  def start(_type, _args) do
    import Supervisor.Spec, warn: false

    PhoenixCowboyLogging.enable_for(:my_web_app, __MODULE__.Endpoint)

    children = [
      supervisor(__MODULE__.Endpoint, []),
...

Installation

This package can be installed as:

  1. Add phoenix_cowboy_logging to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:phoenix_cowboy_logging, "~> 1.0"}]
end
```