mirror of https://github.com/docker/docs.git
remove log info for default case in SetOptions
Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
parent
59e1e9b942
commit
d333da5284
|
|
@ -72,8 +72,7 @@ func (s *Consul) SetOptions(options ...interface{}) {
|
||||||
s.SetTimeout(opt)
|
s.SetTimeout(opt)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO give more meaningful information to print
|
// ignore
|
||||||
log.Info("store: option unsupported for consul")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,7 @@ func (s *Etcd) SetOptions(options ...interface{}) {
|
||||||
s.SetTimeout(opt)
|
s.SetTimeout(opt)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO give more meaningful information to print
|
// ignore
|
||||||
log.Info("store: option unsupported for etcd")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,7 @@ func (s *Zookeeper) SetOptions(options ...interface{}) {
|
||||||
s.SetTimeout(opt)
|
s.SetTimeout(opt)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO give more meaningful information to print
|
// ignore
|
||||||
log.Error("store: option unsupported for zookeeper")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -154,7 +153,8 @@ func (s *Zookeeper) CancelWatch(key string) error {
|
||||||
|
|
||||||
// GetRange gets a range of values at "directory"
|
// GetRange gets a range of values at "directory"
|
||||||
func (s *Zookeeper) GetRange(prefix string) (values [][]byte, err error) {
|
func (s *Zookeeper) GetRange(prefix string) (values [][]byte, err error) {
|
||||||
entries, _, err := s.client.Children(format(prefix))
|
prefix = format(prefix)
|
||||||
|
entries, _, err := s.client.Children(prefix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Cannot fetch range of keys beginning with prefix: ", prefix)
|
log.Error("Cannot fetch range of keys beginning with prefix: ", prefix)
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue