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

core(driver): add verbose logs for wait-for page load components #15818

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

connorjclark
Copy link
Collaborator

was useful for debugging issue mentioned in #15816

@connorjclark connorjclark requested a review from a team as a code owner February 20, 2024 19:02
@connorjclark connorjclark requested review from adamraine and removed request for a team February 20, 2024 19:02
Copy link

vercel bot commented Feb 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lighthouse ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2024 7:02pm

@@ -446,6 +446,21 @@ async function waitForFullyLoaded(session, networkMonitor, options) {
// CPU listener. Resolves when the CPU has been idle for cpuQuietThresholdMs after network idle.
let resolveOnCPUIdle = waitForNothing();

if (log.isVerbose()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this if clause necessary? Since you're using log.verbose wouldn't these messages get filtered out under normal circumstances anyway?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, but I'm adding promises, and I wanted a block for all the debugging stuff.

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

Successfully merging this pull request may close these issues.

2 participants