minor tweak to logging
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
23834a39fd
commit
4879821486
1 changed files with 5 additions and 8 deletions
13
start.go
13
start.go
|
@ -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
|
||||
func (a *Agent) Start() error {
|
||||
logrus.Infof("starting agent: grpc=%s:%d bind=%s:%d advertise=%s:%d",
|
||||
a.config.AgentAddr,
|
||||
a.config.AgentPort,
|
||||
a.config.BindAddr,
|
||||
a.config.BindPort,
|
||||
a.config.AdvertiseAddr,
|
||||
a.config.AdvertisePort,
|
||||
)
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"grpc": fmt.Sprintf("%s:%d", a.config.AgentAddr, a.config.AgentPort),
|
||||
"bind": fmt.Sprintf("%s:%d", a.config.BindAddr, a.config.BindPort),
|
||||
"advertise": fmt.Sprintf("%s:%d", a.config.AdvertiseAddr, a.config.AdvertisePort),
|
||||
}).Info("starting agent")
|
||||
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", a.config.AgentAddr, a.config.AgentPort))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue