Skip to content

Commit

Permalink
fix: log peer id as string not object (#514)
Browse files Browse the repository at this point in the history
So we aren't logging buffers etc, log the peer id as a string when
lookup fails.
  • Loading branch information
achingbrain authored Apr 23, 2024
1 parent f7f71bb commit f6bcbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils/src/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ export class Routing implements RoutingInterface, Startable {

return provider
} catch (err) {
this.log.error('could not load multiaddrs for peer', peer.id, err)
this.log.error('could not load multiaddrs for peer %p', peer.id, err)
return null
}
}, {
peerId: peer.id,
signal: options.signal
})
.catch(err => {
this.log.error('could not load multiaddrs for peer', peer.id, err)
this.log.error('could not load multiaddrs for peer %p', peer.id, err)
})
}

Expand Down

0 comments on commit f6bcbd4

Please sign in to comment.