debug values foe eloy

This commit is contained in:
Radu Ioan Fericean
2015-04-24 18:18:29 +03:00
parent a20cd5d497
commit 4aea3b4167

View File

@@ -217,7 +217,7 @@ func (b *Balance) GetMinutesForCredit(origCD *CallDescriptor, initialCredit floa
// Gets the cost using balance RatingSubject if present otherwize
// retuns a callcost obtained using standard rating
func (b *Balance) GetCost(cd *CallDescriptor, getStandarIfEmpty bool) (*CallCost, error) {
func (b *Balance) GetCost(cd *CallDescriptor, getStandardIfEmpty bool) (*CallCost, error) {
// testing only
if cd.test_callcost != nil {
return cd.test_callcost, nil
@@ -234,7 +234,7 @@ func (b *Balance) GetCost(cd *CallDescriptor, getStandarIfEmpty bool) (*CallCost
cd.Account = origAccount
return cc, err
}
if getStandarIfEmpty {
if getStandardIfEmpty {
cd.RatingInfos = nil
return cd.GetCost()
} else {
@@ -419,6 +419,8 @@ func (b *Balance) DebitMoney(cd *CallDescriptor, ub *Account, count bool, dryRun
if ts.Increments == nil {
ts.createIncrementsSlice()
}
//log.Printf("CD: %+v", cd)
//log.Printf("CC: %+v", cc)
//log.Printf("TS: %+v", ts)
maxCost, strategy := ts.RateInterval.GetMaxCost()
//log.Printf("Timing: %+v", ts.RateInterval.Timing)