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:
- detect if we are running in Node.js core, and if so, use a different debuglog prefix
- move away from using diagnostics channels and just inline the debuglogs
Do you see any other options?
Unfortunately, using diagnostic channels to set up
debuglogwas a bad idea. It won't work because our implementation inside Node.js will react to the sameNODE_DEBUGflag, and duplicate the messages, making these logs hard to read.A solution for this would be:
Do you see any other options?