aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/internal/util.js2
-rw-r--r--test/sequential/test-deprecation-flags.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/internal/util.js b/lib/internal/util.js
index a31f22e6e9..c49dbe93da 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 a243cc44f2..543e368466 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');
});