diff --git a/lib/internal/util.js b/lib/internal/util.js index a31f22e6e9f186..c49dbe93dae52c 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -1,6 +1,6 @@ 'use strict'; -const prefix = '(node) '; +const prefix = `(${process.release.name}:${process.pid}) `; // All the internal deprecations have to use this function only, as this will // prepend the prefix to the actual message. diff --git a/test/sequential/test-deprecation-flags.js b/test/sequential/test-deprecation-flags.js index a243cc44f29dd7..543e36846618fb 100644 --- a/test/sequential/test-deprecation-flags.js +++ b/test/sequential/test-deprecation-flags.js @@ -16,8 +16,7 @@ execFile(node, normal, function(er, stdout, stderr) { console.error('normal: show deprecation warning'); assert.equal(er, null); assert.equal(stdout, ''); - assert.equal(stderr, '(node) util.debug is deprecated. Use console.error ' + - 'instead.\nDEBUG: This is deprecated\n'); + assert(/util\.debug is deprecated/.test(stderr)); console.log('normal ok'); });