Remove logs

This commit is contained in:
TeoV
2018-03-30 02:55:31 -04:00
committed by Dan Christian Bogos
parent 84e3ac80fe
commit f80bad92fc
2 changed files with 1 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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