Pulse icon indicating copy to clipboard operation
Pulse copied to clipboard

Using SensitiveHeaders doesn't work for StoreRequest with LoggerStore

Open wow-such-amazing opened this issue 6 months ago • 1 comments

Hey there!

Thanks a lot for the library, it's an amazing way to look into the logs on device!

I've wanted to enable logs in our app store builds to have a bit more info available on device if needed. And I wanted to leverage usage of NetworkLogger.Configuration for that.

It does redact sensitive data when using URLSessionProxy, but it doesn't work when using LoggerStore.shared.storeRequest. And we have to use it as we are actually using Apollo library for GraphQL communication. And they don't provide a way to inject a URLSession.

I guess one option I have right now is to redact those fields in the request and response on my own?

Cheers!

wow-such-amazing avatar Apr 02 '25 11:04 wow-such-amazing