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

filterLog not filtering out Severity of 'warning' for Type of 'cy:xhr' #84

Closed
adamsjr8576 opened this issue Mar 10, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@adamsjr8576
Copy link

Hello Again!

I'm encountering an issue when attempting to use filterLog to filter out logs based on severity. This is being used in addition to collectType. I have the Types being filtered, but within that I only want to collect and print logs with a Severity of either 'error' or 'warning'.

Here is the solution that I thought would work for this:
Screen Shot 2021-03-10 at 12 45 38 PM

this yields the result of: (even though there is a 'cy:xhr' with a severity of 'warning' being generated)
Screen Shot 2021-03-10 at 12 54 26 PM

This solution correctly filters out logs with the severity of 'error' but does not filter out the severity of 'warning' for a 'cy:xhr' type. The tests being run to simulate this are generating a 'cy:xhr' warning every time, and without the filters here is a snapshot of that output:
Screen Shot 2021-03-10 at 12 49 56 PM

It looks like the severity on that 'cy:xhr' is set to 'warning', so I am not sure why it is not being filtered out in the above solution. Because I am interested in getting info on XHR requests that fail - I don't care about the one's that have a severity of 'success' as there is a LOT of them.

Do you see anything that I am doing incorrectly - or know what might be causing this to happen?

Thank you so much!!

@adamsjr8576 adamsjr8576 changed the title filterLog not filtering out Severity of 'warning' for Type of 'cy:chr' filterLog not filtering out Severity of 'warning' for Type of 'cy:xhr' Mar 10, 2021
@archfz archfz added the bug Something isn't working label Mar 10, 2021
@archfz
Copy link
Owner

archfz commented Mar 10, 2021

Fixed in 3.0.1

@archfz archfz closed this as completed Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants