mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Remove logs
This commit is contained in:
committed by
Dan Christian Bogos
parent
84e3ac80fe
commit
f80bad92fc
@@ -55,7 +55,7 @@ func (lcs *LeastCostSorter) SortSuppliers(prflID string,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
utils.Logger.Debug(fmt.Sprintf("maxCost : %+v and cost costData[utils.Cost] %+v", float64(*lcs.spS.maxCost), cost))
|
||||
|
||||
if cost > *lcs.spS.maxCost && *lcs.spS.maxCost != 0 {
|
||||
continue
|
||||
}
|
||||
@@ -70,7 +70,6 @@ func (lcs *LeastCostSorter) SortSuppliers(prflID string,
|
||||
SortingData: srtData,
|
||||
SupplierParameters: s.SupplierParameters})
|
||||
}
|
||||
utils.Logger.Debug(fmt.Sprintf("sortedSuppls : %+v \n", sortedSuppls))
|
||||
if len(sortedSuppls.SortedSuppliers) == 0 {
|
||||
return nil, utils.ErrNotFound
|
||||
}
|
||||
|
||||
@@ -266,7 +266,6 @@ func (spS *SupplierService) resourceUsage(resIDs []string) (tUsage float64, err
|
||||
// for event based on filters and sorting algorithms
|
||||
func (spS *SupplierService) sortedSuppliersForEvent(args *ArgsGetSuppliers) (sortedSuppls *SortedSuppliers, err error) {
|
||||
var suppPrfls SupplierProfiles
|
||||
utils.Logger.Debug(fmt.Sprintf("args.maxcost %+v", args.MaxCost))
|
||||
spS.maxCost = utils.Float64Pointer(args.MaxCost)
|
||||
if suppPrfls, err = spS.matchingSupplierProfilesForEvent(&args.CGREvent); err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user