diff --git a/lib/internal/process/coverage.js b/lib/internal/process/coverage.js index 5c5d0c2b6171f3..c84181db933334 100644 --- a/lib/internal/process/coverage.js +++ b/lib/internal/process/coverage.js @@ -53,7 +53,7 @@ exports.writeCoverage = writeCoverage; function setup() { const { Connection } = internalBinding('inspector'); if (!Connection) { - console.warn('inspector not enabled'); + process._rawDebug('inspector not enabled'); return; } @@ -80,7 +80,7 @@ function setup() { coverageDirectory = process.env.NODE_V8_COVERAGE = resolve(process.env.NODE_V8_COVERAGE); } catch (err) { - console.error(err); + process._rawDebug(err.toString()); } }