peer fix: String() uses Pretty

This commit is contained in:
Juan Batiz-Benet 2014-12-19 19:15:37 -08:00
parent 30558d40ff
commit c49580044d

View File

@ -34,7 +34,7 @@ func (id ID) Loggable() map[string]interface{} {
// IDs safely. Then any peer.ID type found in the
// codebase is known to be correct.
func (id ID) String() string {
pid := string(id)
pid := id.Pretty()
maxRunes := 6
if len(pid) < maxRunes {
maxRunes = len(pid)