Add traces to scheduler

This commit is contained in:
Wojciech Tyczynski
2016-04-20 13:35:06 +02:00
parent 15ed9dbd02
commit 80901a5542
2 changed files with 14 additions and 2 deletions

View File

@@ -441,7 +441,7 @@ type binder struct {
// Bind just does a POST binding RPC.
func (b *binder) Bind(binding *api.Binding) error {
glog.V(2).Infof("Attempting to bind %v to %v", binding.Name, binding.Target.Name)
glog.V(3).Infof("Attempting to bind %v to %v", binding.Name, binding.Target.Name)
ctx := api.WithNamespace(api.NewContext(), binding.Namespace)
return b.Post().Namespace(api.NamespaceValue(ctx)).Resource("bindings").Body(binding).Do().Error()
// TODO: use Pods interface for binding once clusters are upgraded