logging friendliness
Juan Batiz-Benet committed
Oct 17, 2014 at 01:17 UTC
08af98d41259690b16707a1a24542f48b4000353
2 files changed
+2
-2
peer/peer.go
+1
-1
@@ -65,7 +65,7 @@ type Peer struct {
65
66
// String prints out the peer.
67
func (p *Peer) String() string {
68
- return "[Peer " + p.ID.String() + "]"
68
+ return "[Peer " + p.ID.String()[:12] + "]"
69
}
70
71
// Key returns the ID as a Key (string) for maps.
util/log.go
+1
-1
@@ -18,7 +18,7 @@ var ansiGray = "\033[0;37m"
18
// LogFormats is a map of formats used for our logger, keyed by name.
19
var LogFormats = map[string]string{
20
"default": "%{color}%{time:2006-01-02 15:04:05.999999} %{level} %{shortfile}: %{color:reset}%{message}",
21
- "color": ansiGray + "%{time:15:04:05.999} %{color}%{level} " + ansiGray + "%{shortfile}: %{color:reset}%{message}",
21
+ "color": ansiGray + "%{time:15:04:05.999} %{color}%{level}: %{color:reset}%{message} " + ansiGray + "%{shortfile}%{color:reset}",
22
}
23
24
// Logging environment variables