Skip to content

Commit e9efb7f

Browse files
authored
fix: log peer id not whole object (libp2p#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

Lines changed: 1 addition & 1 deletion
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)