trace_events: remove usage of require('util')

Use `require('internal/util/inspect').format` instead of
`require('util').format`.

Refs: https://github.com/nodejs/node/issues/26546

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
dnlup 2019-03-20 16:06:14 +01:00 committed by ZYSzys
parent b2b8741a7e
commit a89451409e

View File

@ -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();