mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 23:58:44 +05:00
Updated treshold handling in resources
This commit is contained in:
committed by
Dan Christian Bogos
parent
03d9184c07
commit
19e18f7e20
@@ -531,7 +531,7 @@ func (rS *ResourceService) processThresholds(rs Resources, argDispatcher *utils.
|
||||
var tIDs []string
|
||||
if err := rS.connMgr.Call(rS.cgrcfg.ResourceSCfg().ThresholdSConns, nil,
|
||||
utils.ThresholdSv1ProcessEvent, thEv, &tIDs); err != nil &&
|
||||
err.Error() != utils.ErrNotFound.Error() {
|
||||
(len(thIDs) != 0 || err.Error() != utils.ErrNotFound.Error()) {
|
||||
utils.Logger.Warning(
|
||||
fmt.Sprintf("<%s> error: %s processing event %+v with %s.",
|
||||
utils.ResourceS, err.Error(), thEv, utils.ThresholdS))
|
||||
|
||||
Reference in New Issue
Block a user