unixcharles / acme-client

A Ruby client for the letsencrypt's ACME protocol.
MIT License
495 stars 116 forks source link

Is there a possibility of logging the actual HTTP requests and responses? #212

Closed noteflakes closed 2 years ago

noteflakes commented 2 years ago

Hi, is there any way of passing a logger to Acme::Client or some other facility for logging the HTTP traffic?

unixcharles commented 2 years ago

Using connection_options you can pass option to Faraday but I don't think you can log the entire body of the response.

You could always monkey patch #new_connection to inject a custom middleware logger.