Skip to content

Using SensitiveHeaders doesn't work for StoreRequest with LoggerStore #327

Open
@wow-such-amazing

Description

@wow-such-amazing

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions