Skip to content

lib: explicitly initialize debuglog during bootstrap

Rodrigo Muino Tomonari requested to merge github/fork/joyeecheung/debuglog into master

lib: move format and formatWithOptions into internal/util/inspect.js

So these can be required without requiring the whole util.js.

process: call prepareMainThreadExecution in all main thread scripts

lib: explicitly initialize debuglog during bootstrap

This patch splits the implementation of util.debuglog into a separate file and explicitly initialize it during pre-execution since the initialization depends on environment variables. Also delays the call to debuglog in modules that are loaded during bootstrap to make sure we only access the environment variable during pre-execution.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading