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 authored and Michaël Zasso committed 2019-03-27 22:16:16 +01:00
1 parent a2d2756792
commit 0f9a779da8
1 file changed
+1 -1
+1 -1
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();