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

Commit

Permalink
fix: log peer id not whole object (#470)
Browse files Browse the repository at this point in the history
Otherwise the log displays `[object Object]`
  • Loading branch information
achingbrain authored May 5, 2023
1 parent a13095c commit e9efb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routing-table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class RoutingTable implements Startable {
// only evict peers if we are still running, otherwise we evict when dialing is
// cancelled due to shutdown in progress
this.log.error('could not ping peer %p', oldContact.peer, err)
this.log('evicting old contact after ping failed %p', oldContact)
this.log('evicting old contact after ping failed %p', oldContact.peer)
this.kb.remove(oldContact.id)
}
} finally {
Expand Down

0 comments on commit e9efb7f

Please sign in to comment.