Skip to content

[BUG] Logger sink with name browser skips browser:err #1950

@arjunattam

Description

@arjunattam

Context:

  • Playwright Version: 0.14.0
  • Operating System: Ubuntu 20.04

Code Snippet

I was expecting to see errors in launching the browser with this logger sink. However, this does not show logs in the browser:err namespace.

const { webkit } = require('playwright');

(async () => {
    const browser = await webkit.launch({ logger: {
        isEnabled: (name, severity) => name === 'browser',
        log: (name, severity, message, args) => console.log(`${name} ${message}`)
    }});
    await browser.close();
})();

Using this with DEBUG=* shows the errors.
Screen Shot 2020-04-23 at 2 00 05 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions