From 211b14d4af22295ed445ecdd43ee9f07c57fc866 Mon Sep 17 00:00:00 2001 From: adragusin Date: Wed, 22 Apr 2020 11:13:53 +0300 Subject: [PATCH] Updated MAX_INCREMENTS_EXCEEDED warning log --- engine/timespans.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/timespans.go b/engine/timespans.go index 8d07ca674..459c2a6ee 100644 --- a/engine/timespans.go +++ b/engine/timespans.go @@ -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)