go-livepeer-basicnet
go-livepeer-basicnet copied to clipboard
logging: Print abbreviated peer IDs.
Easier to distinguish and diagnose issues with rather than using the full hex-encoded address.
Hmm... This is gonna make it hard to match up with the StrmIDs, since it's composed of the full hex nodeID and a random byte array.
Does that come in handy? Usually I'm looking at the logs between adjacent peers, which usually don't match the stream ID (bootnodes etc). If we do need to print the actual stream ID in places, then perhaps we should do it in abbreviated form as well (eg, by extracting the broadcaster nodeid).
🚢