Skip to content

Commit

Permalink
Add logging to selection_algorithm.go (#3076)
Browse files Browse the repository at this point in the history
* Add logging to selection_algorithm.go

* Add even more logging
  • Loading branch information
leszko committed Jun 11, 2024
1 parent e8f079e commit 65f501a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/selection_algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (sa ProbabilitySelectionAlgorithm) filterByPerfScore(addrs []ethcommon.Addr
if len(res) == 0 {
// If no orchestrators pass the perf filter, return all Orchestrators.
// That may mean some issues with the PerfScore service.
glog.Warning("No Orchestrators passed min performance score filter, not using the filter")
glog.Warning("No Orchestrators passed min performance score filter, not using the filter, numAddrs=%d, minPerfScore=%v, scores=%v, addrs=%v", len(addrs), sa.MinPerfScore, scores, addrs)
return addrs
}
return res
Expand All @@ -72,7 +72,7 @@ func (sa ProbabilitySelectionAlgorithm) filterByMaxPrice(addrs []ethcommon.Addre
if len(res) == 0 {
// If no orchestrators pass the filter, return all Orchestrators
// It means that no orchestrators are below the max price
glog.Warning("No Orchestrators passed max price filter, not using the filter")
glog.Warning("No Orchestrators passed max price filter, not using the filter, numAddrs=%d, maxPrice=%v, prices=%v, addrs=%v", len(addrs), maxPrice, prices, addrs)
return addrs
}
return res
Expand Down

0 comments on commit 65f501a

Please sign in to comment.