better logging just to make sure

This commit is contained in:
Radu Ioan Fericean
2015-07-16 20:10:47 +03:00
parent cd8d42fc68
commit 4f142abc4b

View File

@@ -100,8 +100,8 @@ func (s *Session) debitLoop(runIdx int) {
}
s.sessionRuns[runIdx].CallCosts = append(s.sessionRuns[runIdx].CallCosts, cc)
engine.Logger.Debug(fmt.Sprintf("CALLCOST: %s", utils.ToJSON(cc)))
engine.Logger.Debug(fmt.Sprintf("NEXTCD: %s DURATION: %s", utils.ToJSON(nextCd), nextCd.GetDuration().String()))
nextCd.TimeEnd = cc.GetEndTime() // set debited timeEnd
engine.Logger.Debug(fmt.Sprintf("NEXTCD: %s DURATION: %s", utils.ToJSON(nextCd), nextCd.GetDuration().String()))
// update call duration with real debited duration
nextCd.DurationIndex -= debitPeriod
nextCd.DurationIndex += cc.GetDuration()