mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 06:09:53 +05:00
Removing debug messages for call calculation
This commit is contained in:
@@ -306,13 +306,13 @@ func (cd *CallDescriptor) splitInTimeSpans(firstSpan *TimeSpan) (timespans []*Ti
|
||||
}
|
||||
}
|
||||
}
|
||||
Logger.Debug(fmt.Sprintf("After SplitByRatingPlan: %+v", timespans))
|
||||
// Logger.Debug(fmt.Sprintf("After SplitByRatingPlan: %+v", timespans))
|
||||
// split on price intervals
|
||||
for i := 0; i < len(timespans); i++ {
|
||||
//log.Printf("==============%v==================", i)
|
||||
//log.Printf("TS: %+v", timespans[i])
|
||||
rp := timespans[i].ratingInfo
|
||||
Logger.Debug(fmt.Sprintf("rp: %+v", rp))
|
||||
// Logger.Debug(fmt.Sprintf("rp: %+v", rp))
|
||||
//timespans[i].RatingPlan = nil
|
||||
rp.RateIntervals.Sort()
|
||||
for _, interval := range rp.RateIntervals {
|
||||
@@ -335,7 +335,7 @@ func (cd *CallDescriptor) splitInTimeSpans(firstSpan *TimeSpan) (timespans []*Ti
|
||||
Logger.Debug(fmt.Sprintf("After SplitByRateInterval: %+v", timespans))
|
||||
//log.Printf("After SplitByRateInterval: %+v", timespans)
|
||||
timespans = cd.roundTimeSpansToIncrement(timespans)
|
||||
Logger.Debug(fmt.Sprintf("After round: %+v", timespans))
|
||||
// Logger.Debug(fmt.Sprintf("After round: %+v", timespans))
|
||||
//log.Printf("After round: %+v", timespans)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -142,12 +142,12 @@ func (ts *TimeSpan) SplitByRateInterval(i *RateInterval) (nts *TimeSpan) {
|
||||
//log.Printf("NOT in interval: %+v", i)
|
||||
return
|
||||
}
|
||||
Logger.Debug(fmt.Sprintf("TS: %+v", ts))
|
||||
//Logger.Debug(fmt.Sprintf("TS: %+v", ts))
|
||||
// split by GroupStart
|
||||
if i.Rating != nil {
|
||||
i.Rating.Rates.Sort()
|
||||
for _, rate := range i.Rating.Rates {
|
||||
Logger.Debug(fmt.Sprintf("Rate: %+v", rate))
|
||||
// Logger.Debug(fmt.Sprintf("Rate: %+v", rate))
|
||||
if ts.GetGroupStart() < rate.GroupIntervalStart && ts.GetGroupEnd() > rate.GroupIntervalStart {
|
||||
Logger.Debug(fmt.Sprintf("Splitting"))
|
||||
ts.SetRateInterval(i)
|
||||
|
||||
Reference in New Issue
Block a user