Add port to all graphite log output to help with debugging multiple endpoints

pull/6834/head
Jack Zampolin 2016-06-13 11:59:56 -07:00
parent bc82a50c75
commit f1db2f2ca5
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func NewService(c Config) (*Service, error) {
batchPending: d.BatchPending,
udpReadBuffer: d.UDPReadBuffer,
batchTimeout: time.Duration(d.BatchTimeout),
logger: log.New(os.Stderr, "[graphite] ", log.LstdFlags),
logger: log.New(os.Stderr, fmt.Sprintf("[graphite] %s ", d.BindAddress), log.LstdFlags),
tcpConnections: make(map[string]*tcpConnection),
done: make(chan struct{}),
diagsKey: strings.Join([]string{"graphite", d.Protocol, d.BindAddress}, ":"),