minor tweak to logging

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2018-06-30 15:38:49 -04:00
parent 23834a39fd
commit 4879821486
No known key found for this signature in database
GPG key ID: A519480096146526

View file

@ -9,14 +9,11 @@ import (
// Start activates the GRPC listener as well as joins the cluster if specified and blocks until a SIGTERM or SIGINT is received // Start activates the GRPC listener as well as joins the cluster if specified and blocks until a SIGTERM or SIGINT is received
func (a *Agent) Start() error { func (a *Agent) Start() error {
logrus.Infof("starting agent: grpc=%s:%d bind=%s:%d advertise=%s:%d", logrus.WithFields(logrus.Fields{
a.config.AgentAddr, "grpc": fmt.Sprintf("%s:%d", a.config.AgentAddr, a.config.AgentPort),
a.config.AgentPort, "bind": fmt.Sprintf("%s:%d", a.config.BindAddr, a.config.BindPort),
a.config.BindAddr, "advertise": fmt.Sprintf("%s:%d", a.config.AdvertiseAddr, a.config.AdvertisePort),
a.config.BindPort, }).Info("starting agent")
a.config.AdvertiseAddr,
a.config.AdvertisePort,
)
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", a.config.AgentAddr, a.config.AgentPort)) l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", a.config.AgentAddr, a.config.AgentPort))
if err != nil { if err != nil {
return err return err