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
|
// 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
|
||||||
|
|
Loading…
Reference in a new issue