Forcing logger to log requests and responses before retries exhausted #2875
-
Requests made with Could you please provide correct way to implement it? I've tried to search in source code and GH discussions but failed Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I believe this is supported by configuring a log formatter on the client. The default log formatter should be sufficient. https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Log/Formatter.html#default-class_method |
Beta Was this translation helpful? Give feedback.
-
Are you looking for wire logging of request/response? If so - you can enable that by configuring the client with: |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Ah, yeah, you're correct. It's wrapped very early in the handler stack here:
aws-sdk-ruby/gems/aws-sdk-core/lib/aws-sdk-core/plugins/logging.rb
Lines 39 to 45 in bef4299
I don't see a good use case to support this in the Log formatter since it doesn't provide much value. Since you're doing this for debug purposes, I think
http_wire_trace
is what you're looking for, and I would not recommend it in production.