Class: Response::BodyLogger
- Inherits:
-
Faraday::Response::Logger
- Object
- Faraday::Response::Logger
- Response::BodyLogger
- Defined in:
- lib/body_logger.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
3 4 5 6 |
# File 'lib/body_logger.rb', line 3 def call(env) debug('request') { env[:body] } super end |
#on_complete(env) ⇒ Object
8 9 10 11 |
# File 'lib/body_logger.rb', line 8 def on_complete(env) super debug('response') { env[:body] } end |