Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit e9efb7f

Browse files
authored
fix: log peer id not whole object (#470)
Otherwise the log displays `[object Object]`
1 parent a13095c commit e9efb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routing-table/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export class RoutingTable implements Startable {
244244
// only evict peers if we are still running, otherwise we evict when dialing is
245245
// cancelled due to shutdown in progress
246246
this.log.error('could not ping peer %p', oldContact.peer, err)
247-
this.log('evicting old contact after ping failed %p', oldContact)
247+
this.log('evicting old contact after ping failed %p', oldContact.peer)
248248
this.kb.remove(oldContact.id)
249249
}
250250
} finally {

0 commit comments

Comments
 (0)