From 45a9532b04993a5b3b08123d4e259bb47a01513b Mon Sep 17 00:00:00 2001 From: "MrLee.Kun" Date: Tue, 27 Oct 2015 15:31:20 +0800 Subject: [PATCH 1/2] add tcp log tag --- tcp/mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp/mux.go b/tcp/mux.go index 5da8d0cce50..98ce9917696 100644 --- a/tcp/mux.go +++ b/tcp/mux.go @@ -35,7 +35,7 @@ func NewMux() *Mux { return &Mux{ m: make(map[byte]*listener), Timeout: DefaultTimeout, - Logger: log.New(os.Stderr, "", log.LstdFlags), + Logger: log.New(os.Stderr, "[tcp] ", log.LstdFlags), } } From 883640a288f76926c4e0870d533591097577f439 Mon Sep 17 00:00:00 2001 From: "MrLee.Kun" Date: Tue, 27 Oct 2015 15:32:51 +0800 Subject: [PATCH 2/2] change cluster logger tag --- cluster/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/service.go b/cluster/service.go index 772bd253548..58e81fe21b6 100644 --- a/cluster/service.go +++ b/cluster/service.go @@ -61,7 +61,7 @@ type Service struct { func NewService(c Config) *Service { return &Service{ closing: make(chan struct{}), - Logger: log.New(os.Stderr, "[tcp] ", log.LstdFlags), + Logger: log.New(os.Stderr, "[cluster] ", log.LstdFlags), statMap: influxdb.NewStatistics("cluster", "cluster", nil), } }