From 437a90cfe4e0748dbecdf894c1fbe68c757804dd 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 bf303c28b7dcdc..91ba8e9b71157c 100644 --- a/lib/trace_events.js +++ b/lib/trace_events.js @@ -18,7 +18,7 @@ if (!hasTracing) 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();