Change Async to true for threshold from tutorial

This commit is contained in:
TeoV
2019-09-16 08:54:55 -04:00
committed by Dan Christian Bogos
parent ae7785910f
commit 80c2a7ac59
2 changed files with 4 additions and 5 deletions

View File

@@ -1,4 +1,3 @@
#Tenant[0],Id[1],FilterIDs[2],ActivationInterval[3],MaxHits[4],MinHits[5],MinSleep[6],Blocker[7],Weight[8],ActionIDs[9],Async[10]
cgrates.org,THD_ACNT_1001,FLTR_ACNT_1001,2014-07-29T15:00:00Z,1,1,1s,false,10,ACT_LOG_WARNING,false
cgrates.org,THD_ACNT_1002,FLTR_ACNT_1002,2014-07-29T15:00:00Z,-1,1,1s,false,10,ACT_LOG_WARNING,false
cgrates.org,THD_ACNT_1001,FLTR_ACNT_1001,2014-07-29T15:00:00Z,1,1,1s,false,10,ACT_LOG_WARNING,true
cgrates.org,THD_ACNT_1002,FLTR_ACNT_1002,2014-07-29T15:00:00Z,-1,1,1s,false,10,ACT_LOG_WARNING,true
1 #Tenant[0] Id[1] FilterIDs[2] ActivationInterval[3] MaxHits[4] MinHits[5] MinSleep[6] Blocker[7] Weight[8] ActionIDs[9] Async[10]
2 cgrates.org THD_ACNT_1001 FLTR_ACNT_1001 2014-07-29T15:00:00Z 1 1 1s false 10 ACT_LOG_WARNING false true
3 cgrates.org THD_ACNT_1002 FLTR_ACNT_1002 2014-07-29T15:00:00Z -1 1 1s false 10 ACT_LOG_WARNING false true

View File

@@ -549,8 +549,8 @@ func (ub *Account) debitCreditBalance(cd *CallDescriptor, count bool, dryRun boo
if err := thresholdS.Call(utils.ThresholdSv1ProcessEvent, thEv, &tIDs); err != nil &&
err.Error() != utils.ErrNotFound.Error() {
utils.Logger.Warning(
fmt.Sprintf("<AccountS> error: %s processing balance event %+v with ThresholdS.",
err.Error(), thEv))
fmt.Sprintf("<AccountS> error: <%s> processing balance event <%+v> with ThresholdS.",
err.Error(), utils.ToJSON(thEv)))
}
}