lostisland / faraday

Simple, but flexible HTTP client library, with support for multiple backends.
https://lostisland.github.io/faraday
MIT License
5.71k stars 972 forks source link

Fix incorrect use of logger middleware in docs #1497

Closed mattbrictson closed 1 year ago

mattbrictson commented 1 year ago

f.request :logger as originally suggested in the docs does not work.

:logger is not registered on Faraday::Request (Faraday::Error)

The correct usage is f.response :logger

olleolleolle commented 1 year ago

Thanks, @mattbrictson!