mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated MAX_INCREMENTS_EXCEEDED warning log
This commit is contained in:
committed by
Dan Christian Bogos
parent
0de9bee9d7
commit
211b14d4af
@@ -471,7 +471,7 @@ func (ts *TimeSpan) createIncrementsSlice() {
|
||||
//incrementCost := rate / rateUnit.Seconds() * rateIncrement.Seconds()
|
||||
nbIncrements := int(ts.GetDuration() / rateIncrement)
|
||||
if nbIncrements > config.CgrConfig().RalsCfg().MaxIncrements {
|
||||
utils.Logger.Warning(fmt.Sprintf("error: <%s with %+v>, when creating increments slice", utils.ErrMaxIncrementsExceeded, nbIncrements))
|
||||
utils.Logger.Warning(fmt.Sprintf("error: <%s with %+v>, when creating increments slice, TimeSpan: %s", utils.ErrMaxIncrementsExceeded, nbIncrements, utils.ToJSON(ts)))
|
||||
return
|
||||
}
|
||||
incrementCost := ts.CalculateCost() / float64(nbIncrements)
|
||||
|
||||
Reference in New Issue
Block a user