Skip to content

Move debuglog out of diagnostic channels #3809

@mcollina

Description

@mcollina

Unfortunately, using diagnostic channels to set up debuglog was a bad idea. It won't work because our implementation inside Node.js will react to the same NODE_DEBUG flag, and duplicate the messages, making these logs hard to read.

A solution for this would be:

  1. detect if we are running in Node.js core, and if so, use a different debuglog prefix
  2. move away from using diagnostics channels and just inline the debuglogs

Do you see any other options?

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