From a89451409ed00d9bbc037e13b4f939b4a4ee93b3 Mon Sep 17 00:00:00 2001 From: dnlup Date: Wed, 20 Mar 2019 16:06:14 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Yongsheng Zhang --- lib/trace_events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trace_events.js b/lib/trace_events.js index 41c4dbe741cd1d..2b154946d86504 100644 --- a/lib/trace_events.js +++ b/lib/trace_events.js @@ -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();