timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
1.98k stars 532 forks source link

Allow Faraday logging #742

Closed drnic closed 11 months ago

drnic commented 11 months ago

Tesla::Client.new(logger_bodies: true, logger_header: true) enables Faraday logger

The Faraday client cannot be modified after its constructed; so I believe we need to allow enabling logging middleware during Tesla::Client.new constructor.

timdorr commented 11 months ago

I'm game. Prevents me from having to uncomment that one line every time I do dev work 😆