@@ -297,7 +297,7 @@ export class KadDHT extends TypedEventEmitter<PeerDiscoveryEvents> implements Ka
297297 const peerData = evt . detail
298298
299299 this . onPeerConnect ( peerData ) . catch ( err => {
300- this . log . error ( 'could not add %p to routing table' , peerData . id , err )
300+ this . log . error ( 'could not add %p to routing table - %e ' , peerData . id , err )
301301 } )
302302
303303 this . dispatchEvent ( new CustomEvent ( 'peer' , {
@@ -320,7 +320,7 @@ export class KadDHT extends TypedEventEmitter<PeerDiscoveryEvents> implements Ka
320320
321321 await this . onPeerConnect ( peerData )
322322 } ) . catch ( err => {
323- this . log . error ( 'could not add %p to routing table - %e - %e ' , peerId , err )
323+ this . log . error ( 'could not add %p to routing table - %e' , peerId , err )
324324 } )
325325 } )
326326
@@ -347,7 +347,7 @@ export class KadDHT extends TypedEventEmitter<PeerDiscoveryEvents> implements Ka
347347 }
348348 } )
349349 . catch ( err => {
350- this . log . error ( 'error setting dht server mode' , err )
350+ this . log . error ( 'error setting dht server mode - %e ' , err )
351351 } )
352352 } )
353353 }
@@ -404,7 +404,7 @@ export class KadDHT extends TypedEventEmitter<PeerDiscoveryEvents> implements Ka
404404 signal
405405 } )
406406 } catch ( err : any ) {
407- this . log . error ( 'could not add %p to routing table' , peerData . id , err )
407+ this . log . error ( 'could not add %p to routing table - %e ' , peerData . id , err )
408408 }
409409 }
410410
0 commit comments