Merge pull request #277 from vieux/log_join

add info in join
This commit is contained in:
Andrea Luzzardi 2015-01-22 14:44:32 -08:00
commit 568cb6f7cb
1 changed files with 2 additions and 1 deletions

View File

@ -37,8 +37,9 @@ func join(c *cli.Context) {
hb := time.Duration(c.Int("heartbeat"))
for {
log.Infof("Registering %q on the discovery service %q every %d seconds...", addr, dflag, hb)
time.Sleep(hb * time.Second)
if err := d.Register(c.String("addr")); err != nil {
if err := d.Register(addr); err != nil {
log.Error(err)
}
}