From 0f0b87600ec7b8a0079845411b9e76da7c8c0fa7 Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Tue, 15 Sep 2015 16:37:28 +0200 Subject: [PATCH] podtask: reduce log verbosity for pods w/o limits --- contrib/mesos/pkg/scheduler/podtask/procurement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/mesos/pkg/scheduler/podtask/procurement.go b/contrib/mesos/pkg/scheduler/podtask/procurement.go index 566be7b5c6e..31c4dc77afe 100644 --- a/contrib/mesos/pkg/scheduler/podtask/procurement.go +++ b/contrib/mesos/pkg/scheduler/podtask/procurement.go @@ -113,10 +113,10 @@ func (r *RequireSomePodResources) Procure(t *T, offer *mesos.Offer) error { // TODO(jdef): changing the state of t.Pod here feels dirty, especially since we don't use a kosher // method to clone the api.Pod state in T.Clone(). This needs some love. if unlimitedCPU := mresource.LimitPodCPU(&t.Pod, r.defaultContainerCPULimit); unlimitedCPU { - log.Warningf("Pod %s/%s without cpu limits is admitted %.2f cpu shares", t.Pod.Namespace, t.Pod.Name, mresource.PodCPULimit(&t.Pod)) + log.V(2).Infof("Pod %s/%s without cpu limits is admitted %.2f cpu shares", t.Pod.Namespace, t.Pod.Name, mresource.PodCPULimit(&t.Pod)) } if unlimitedMem := mresource.LimitPodMem(&t.Pod, r.defaultContainerMemLimit); unlimitedMem { - log.Warningf("Pod %s/%s without memory limits is admitted %.2f MB", t.Pod.Namespace, t.Pod.Name, mresource.PodMemLimit(&t.Pod)) + log.V(2).Infof("Pod %s/%s without memory limits is admitted %.2f MB", t.Pod.Namespace, t.Pod.Name, mresource.PodMemLimit(&t.Pod)) } return nil }