Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add response filtering method. #56

Open
poszposz opened this issue Jul 5, 2018 · 1 comment
Open

Add response filtering method. #56

poszposz opened this issue Jul 5, 2018 · 1 comment

Comments

@poszposz
Copy link

poszposz commented Jul 5, 2018

Currently there is a method available to filter logged requests:
ignoreRequests(matchingPredicate predicate: NSPredicate)

The goal here is to create a method with the same idea to filter responses that are logged into console.

Motivation - I've integrated the library into the app and instantly deintegrated it due to amount of logged stuff that became totally unreadable. Single logs are really useful and readable, but I want to filter only responses that failed for some reason to investigate possible bugs.

@deanWombourne
Copy link

Another approach to this might be to ask what about a request gets logged i.e. do you want the whole response body logged, or just the metadata / headers etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants