Skip to content

Commit

Permalink
More error->debug for logging in the bin packing iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
preetapan committed Dec 12, 2019
1 parent ed1f30e commit be897ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scheduler/rank.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ OUTER:

offer, err = netIdx.AssignNetwork(ask)
if offer == nil {
iter.ctx.Logger().Named("binpack").Error("unexpected error, unable to create network offer after considering preemption", "error", err)
iter.ctx.Logger().Named("binpack").Debug("unexpected error, unable to create network offer after considering preemption", "error", err)
netIdx.Release()
continue OUTER
}
Expand Down Expand Up @@ -324,7 +324,7 @@ OUTER:

offer, err = netIdx.AssignNetwork(ask)
if offer == nil {
iter.ctx.Logger().Named("binpack").Error("unexpected error, unable to create network offer after considering preemption", "error", err)
iter.ctx.Logger().Named("binpack").Debug("unexpected error, unable to create network offer after considering preemption", "error", err)
netIdx.Release()
continue OUTER
}
Expand Down Expand Up @@ -368,7 +368,7 @@ OUTER:
// Try offer again
offer, sumAffinities, err = devAllocator.AssignDevice(req)
if offer == nil {
iter.ctx.Logger().Named("binpack").Error("unexpected error, unable to create device offer after considering preemption", "error", err)
iter.ctx.Logger().Named("binpack").Debug("unexpected error, unable to create device offer after considering preemption", "error", err)
continue OUTER
}
}
Expand Down
2 changes: 1 addition & 1 deletion scheduler/spread.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (iter *SpreadIterator) Next() *RankedNode {
usedCount += 1
// Set score to -1 if there were errors in building this attribute
if errorMsg != "" {
iter.ctx.Logger().Named("spread").Warn("error building spread attributes for task group", "task_group", tgName, "error", errorMsg)
iter.ctx.Logger().Named("spread").Debug("error building spread attributes for task group", "task_group", tgName, "error", errorMsg)
totalSpreadScore -= 1.0
continue
}
Expand Down

0 comments on commit be897ca

Please sign in to comment.