mtrudel / bandit

Bandit is a pure Elixir HTTP server for Plug & WebSock applications
MIT License
1.7k stars 85 forks source link

Error handling and logging improvements via re-raising #400

Closed grzuy closed 1 month ago

grzuy commented 2 months ago

Potential alternative to #398 .

Proof of concept still.

Haven't yet tested how compatible is with earlier elixir/otp versions.

This moves to do something "similar" to what plug_cowboy does in https://github.com/elixir-plug/plug_cowboy/blob/ced253f035f2a07ebed17cfacb64d4f16357a750/lib/plug/cowboy/handler.ex#L21-L23.

grzuy commented 1 month ago

Not sure this will land at something worth merging. Closing for now as stale...