Skip to content

Commit

Permalink
etcdmain: report default advertise detection / fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Aug 15, 2016
1 parent e8594b6 commit 67dbff6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions etcdmain/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ func startEtcdOrProxyV2() {

// startEtcd runs StartEtcd in addition to hooks needed for standalone etcd.
func startEtcd(cfg *embed.Config) (<-chan struct{}, <-chan error, error) {
defaultHost, dhErr := cfg.IsDefaultHost()
if defaultHost != "" {
if dhErr == nil {
plog.Infof("advertising using detected default host %q", defaultHost)
} else {
plog.Noticef("failed to detect default host, advertise falling back to %q (%v)", defaultHost, dhErr)
}
}

e, err := embed.StartEtcd(cfg)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit 67dbff6

Please sign in to comment.