diff --git a/packages/libp2p/src/upgrader.ts b/packages/libp2p/src/upgrader.ts index 8ae4b566e6..ac4efe74ba 100644 --- a/packages/libp2p/src/upgrader.ts +++ b/packages/libp2p/src/upgrader.ts @@ -641,7 +641,7 @@ export class DefaultUpgrader implements Upgrader { protocol } } catch (err: any) { - connection.log.error('encrypting inbound connection to %p failed', err) + connection.log.error('encrypting inbound connection failed', err) throw new CodeError(err.message, codes.ERR_ENCRYPTION_FAILED) } } @@ -678,7 +678,7 @@ export class DefaultUpgrader implements Upgrader { protocol } } catch (err: any) { - connection.log.error('encrypting outbound connection to %p failed', err) + connection.log.error('encrypting outbound connection to %p failed', remotePeerId, err) throw new CodeError(err.message, codes.ERR_ENCRYPTION_FAILED) } }