Navigation Menu

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

Option to surpress console.log #744

Closed
binarykitchen opened this issue Sep 12, 2013 · 5 comments · Fixed by #850
Closed

Option to surpress console.log #744

binarykitchen opened this issue Sep 12, 2013 · 5 comments · Fixed by #850

Comments

@binarykitchen
Copy link

When I run my e2e tests with PhantomJS over Karma I see lots of console outputs. They are good for development but I do not want to pollute my screen with them while running tests.

Can you please add an option to suppress console.log ?

@vojtajina
Copy link
Contributor

That might be client.captureConsole (true by default).

@jhchen
Copy link

jhchen commented Dec 5, 2013

Can this be set in the config? I added captureConsole: false and it did not work. I also grepped the 0.11.9 code and there's no reference to captureConsole.

@vojtajina
Copy link
Contributor

This is not implemented yet, this issue is a feature request.

This is however pretty simple to implement. Anybody willing to give it a try?

@sedghi
Copy link

sedghi commented Mar 4, 2022

is it possible to only suppress console.warn?

@jginsburgn
Copy link
Member

is it possible to only suppress console.warn?

You could probably use grep to filter out all logs with the warn tag.

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

Successfully merging a pull request may close this issue.

6 participants