remove log info for default case in SetOptions

Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
Alexandre Beslic 2015-05-11 17:49:40 -07:00
parent 59e1e9b942
commit d333da5284
3 changed files with 5 additions and 7 deletions

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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