You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be useful to allow logging of HTTP body but not headers.
In some cases, headers contains restricted / confidential information such as usernames, passwords, tokens, so you don't want to write them to logs. Whilst HTTP body could contribute useful information.
Actually feign.Logger doesn't have a feign.Logger.Level allowing to configure logging of HTTP body but not headers.
To do that you could create feign.Logger subclass, and rewrite logRequest and logAndRebufferResponse methods.
The text was updated successfully, but these errors were encountered:
Yes, this alternative is useful for not logging some headers (or all of them), but it loops through all headers and you must create a feign.Logger subclass to specify this.
It would be great to have a feign.Logger.Level to log body but not headers.
It could be useful to allow logging of HTTP body but not headers.
In some cases, headers contains restricted / confidential information such as usernames, passwords, tokens, so you don't want to write them to logs. Whilst HTTP body could contribute useful information.
Actually
feign.Logger
doesn't have afeign.Logger.Level
allowing to configure logging of HTTP body but not headers.To do that you could create
feign.Logger
subclass, and rewritelogRequest
andlogAndRebufferResponse
methods.The text was updated successfully, but these errors were encountered: