From 08af98d41259690b16707a1a24542f48b4000353 Mon Sep 17 00:00:00 2001
From: Juan Batiz-Benet <juan@benet.ai>
Date: Fri, 17 Oct 2014 01:17:59 -0700
Subject: [PATCH] logging friendliness

---
 peer/peer.go | 2 +-
 util/log.go  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/peer/peer.go b/peer/peer.go
index 1887208dd..6039e1fac 100644
--- a/peer/peer.go
+++ b/peer/peer.go
@@ -65,7 +65,7 @@ type Peer struct {
 
 // String prints out the peer.
 func (p *Peer) String() string {
-	return "[Peer " + p.ID.String() + "]"
+	return "[Peer " + p.ID.String()[:12] + "]"
 }
 
 // Key returns the ID as a Key (string) for maps.
diff --git a/util/log.go b/util/log.go
index d373229ad..ae633de83 100644
--- a/util/log.go
+++ b/util/log.go
@@ -18,7 +18,7 @@ var ansiGray = "\033[0;37m"
 // LogFormats is a map of formats used for our logger, keyed by name.
 var LogFormats = map[string]string{
 	"default": "%{color}%{time:2006-01-02 15:04:05.999999} %{level} %{shortfile}:	%{color:reset}%{message}",
-	"color": ansiGray + "%{time:15:04:05.999} %{color}%{level} " + ansiGray + "%{shortfile}:	%{color:reset}%{message}",
+	"color": ansiGray + "%{time:15:04:05.999} %{color}%{level}:	%{color:reset}%{message} " + ansiGray + "%{shortfile}%{color:reset}",
 }
 
 // Logging environment variables
-- 
GitLab