Added loaders template for dispatcher

This commit is contained in:
Trial97
2019-02-15 10:26:49 +02:00
committed by Tripon Alexandru-Ionut
parent 4f6f30ef3c
commit 339effa98e
6 changed files with 156 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ func (hcs *HightCostSorter) SortSuppliers(prflID string, suppls []*Supplier,
for _, s := range suppls {
if len(s.RatingPlanIDs) == 0 {
utils.Logger.Warning(
fmt.Sprintf("<%s> RatingPlanIDs is empty for suplier with ID: %s",
fmt.Sprintf("<%s> supplier: <%s> - empty RatingPlanIDs",
utils.SupplierS, s.ID))
return nil, utils.NewErrMandatoryIeMissing("RatingPlanIDs")
}

View File

@@ -43,7 +43,7 @@ func (lcs *LeastCostSorter) SortSuppliers(prflID string, suppls []*Supplier,
for _, s := range suppls {
if len(s.RatingPlanIDs) == 0 {
utils.Logger.Warning(
fmt.Sprintf("<%s> RatingPlanIDs is empty for suplier with ID: %s",
fmt.Sprintf("<%s> supplier: <%s> - empty RatingPlanIDs",
utils.SupplierS, s.ID))
return nil, utils.NewErrMandatoryIeMissing("RatingPlanIDs")
}