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 <shisama07@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
dnlup authored and targos committed Mar 27, 2019

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
1 parent a2d2756 commit 0f9a779
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
@@ -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();

0 comments on commit 0f9a779

Please sign in to comment.