From 340e68f650183960b401485b678a09eb268be919 Mon Sep 17 00:00:00 2001 From: Spencer Date: Sat, 14 Oct 2023 11:18:02 -0600 Subject: [PATCH] Update README.md Augmented documentation for enabling trace logging for hackeny --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e517b34..8d33deb 100644 --- a/README.md +++ b/README.md @@ -344,8 +344,15 @@ For more complex queries regarding multipart response parsing, you should follow If you're running on top of hackney (which you probably are) there's a handy way to get detailed request logging: +```elixir +# Add :runtime_tools to :extra_applications in mix.exs +def application do + [extra_applications: [:logger, :runtime_tools]] +end +``` + ``` -:hackney_trace.enable(:max, :io) +iex(1)> :hackney_trace.enable(:max, :io) ``` Just throw this in your code before your HTTPoison call and you'll get low-level log output.