GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: add 'pid' prefix in `internal/util` · nodejs/node@d01eb68

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • util.js
  • test/sequential
    • test-deprecation-flags.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/util.js‎

Copy file name to clipboardExpand all lines: lib/internal/util.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const prefix = '(node) ';
3+
const prefix = `(${process.release.name}:${process.pid}) `;
44

55
// All the internal deprecations have to use this function only, as this will
66
// prepend the prefix to the actual message.
Collapse file

‎test/sequential/test-deprecation-flags.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-deprecation-flags.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ execFile(node, normal, function(er, stdout, stderr) {
1616
console.error('normal: show deprecation warning');
1717
assert.equal(er, null);
1818
assert.equal(stdout, '');
19-
assert.equal(stderr, '(node) util.debug is deprecated. Use console.error ' +
20-
'instead.\nDEBUG: This is deprecated\n');
19+
assert(/util\.debug is deprecated/.test(stderr));
2120
console.log('normal ok');
2221
});
2322

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.