Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Augmented documentation for enabling trace logging for hackeny
  • Loading branch information
spencerdcarlson authored and edgurgel committed Nov 7, 2023
1 parent 0b8c71a commit d22f1b1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -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.
Expand Down

0 comments on commit d22f1b1

Please sign in to comment.