Updated treshold handling in resources

This commit is contained in:
Trial97
2021-07-22 11:21:00 +03:00
committed by Dan Christian Bogos
parent 03d9184c07
commit 19e18f7e20

View File

@@ -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))