Skip to content

Commit f09ac4a

Browse files
achingbrainmaschad
andauthored
fix(libp2p): update circuit relay and upgrader logs (#2071)
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
1 parent 5ab1770 commit f09ac4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/libp2p/src/circuit-relay/transport/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class CircuitRelayTransport implements Transport {
241241
disconnectOnFailure
242242
})
243243
} catch (err: any) {
244-
log.error(`Circuit relay dial to destination ${destinationPeer.toString()} via relay ${relayPeer.toString()} failed`, err)
244+
log.error('circuit relay dial to destination %p via relay %p failed', destinationPeer, relayPeer, err)
245245

246246
if (stream != null) {
247247
stream.abort(err)

packages/libp2p/src/upgrader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ export class DefaultUpgrader implements Upgrader {
478478

479479
return muxedStream
480480
} catch (err: any) {
481-
log.error('could not create new stream', err)
481+
log.error('could not create new stream for protocols %s on connection with address %a', protocols, connection.remoteAddr, err)
482482

483483
if (muxedStream.timeline.close == null) {
484484
muxedStream.abort(err)

0 commit comments

Comments
 (0)