Skip to content

Add an easy way to log to the terminal during browser tests. #14229

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

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

brendandahl
Copy link
Contributor

On the main thread call driver.log and the message will output in the
terminal with the pdf id and the message.

I've been using this a lot when trying to find certain PDFs or logging
stats.

@timvandermeij
Copy link
Contributor

timvandermeij commented Nov 5, 2021

Unless I'm missing something here, I don't see any other code calling this. If it's intended to only be called manually, I would recommend we introduce a comment that says that to avoid this being deleted in the future during e.g., refactoring, since otherwise it's easy to think that it's dead code and can be removed. With that addressed, r=me too.

@brendandahl
Copy link
Contributor Author

Yeah, it's not being used currently. I've been using it when debugging. I'll add a comment.

On the main thread call `driver.log` and the message will output in the
terminal with the pdf id and the message.

I've been using this a lot when trying to find certain PDFs or logging
stats.
@timvandermeij timvandermeij merged commit b1e9e21 into mozilla:master Nov 19, 2021
@timvandermeij
Copy link
Contributor

Looks good now; thanks!

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

Successfully merging this pull request may close these issues.

3 participants