From e810cd94505656fc6b5d111ef78137fdb8afba61 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sat, 18 Nov 2023 12:41:08 +0000 Subject: [PATCH] chore: use object formatter --- perf/impl/js-libp2p/next/tcp/dist/src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perf/impl/js-libp2p/next/tcp/dist/src/index.js b/perf/impl/js-libp2p/next/tcp/dist/src/index.js index d63bdbd70..8cdba550e 100644 --- a/perf/impl/js-libp2p/next/tcp/dist/src/index.js +++ b/perf/impl/js-libp2p/next/tcp/dist/src/index.js @@ -125,7 +125,7 @@ class TCP { ...options }); const cOptsStr = cOpts.path ?? `${cOpts.host ?? ''}:${cOpts.port}`; - this.log('dialing %j', cOpts); + this.log('dialing %o', cOpts); const rawSocket = net.connect(cOpts); const onError = (err) => { err.message = `connection error ${cOptsStr}: ${err.message}`; @@ -140,12 +140,12 @@ class TCP { rawSocket.emit('error', err); }; const onConnect = () => { - this.log('connection opened %j', cOpts); + this.log('connection opened %o', cOpts); this.metrics?.dialerEvents.increment({ connect: true }); done(); }; const onAbort = () => { - this.log('connection aborted %j', cOpts); + this.log('connection aborted %o', cOpts); this.metrics?.dialerEvents.increment({ abort: true }); rawSocket.destroy(); done(new AbortError());