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)
|
||||
|
||||
default:
|
||||
// TODO give more meaningful information to print
|
||||
log.Info("store: option unsupported for consul")
|
||||
// ignore
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,8 +42,7 @@ func (s *Etcd) SetOptions(options ...interface{}) {
|
|||
s.SetTimeout(opt)
|
||||
|
||||
default:
|
||||
// TODO give more meaningful information to print
|
||||
log.Info("store: option unsupported for etcd")
|
||||
// ignore
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@ func (s *Zookeeper) SetOptions(options ...interface{}) {
|
|||
s.SetTimeout(opt)
|
||||
|
||||
default:
|
||||
// TODO give more meaningful information to print
|
||||
log.Error("store: option unsupported for zookeeper")
|
||||
// ignore
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -154,7 +153,8 @@ func (s *Zookeeper) CancelWatch(key string) error {
|
|||
|
||||
// GetRange gets a range of values at "directory"
|
||||
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 {
|
||||
log.Error("Cannot fetch range of keys beginning with prefix: ", prefix)
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in New Issue