Skip to content

Commit

Permalink
trace_events: remove usage of require('util')
Browse files Browse the repository at this point in the history
Use `require('internal/util/inspect').format` instead of
`require('util').format`.

Refs: #26546

PR-URL: #26822
Reviewed-By: Masashi Hirano <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
  • Loading branch information
dnlup authored and ZYSzys committed Mar 24, 2019
1 parent b2b8741 commit a894514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trace_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (!hasTracing || !ownsProcessState)

const { CategorySet, getEnabledCategories } = internalBinding('trace_events');
const { customInspectSymbol } = require('internal/util');
const { format } = require('util');
const { format } = require('internal/util/inspect');

const enabledTracingObjects = new Set();

Expand Down

0 comments on commit a894514

Please sign in to comment.