Merge "promote log level to warning for invalid event"
This commit is contained in:
commit
92c66522d5
@ -22,7 +22,7 @@ from oslo_utils import timeutils
|
|||||||
import six
|
import six
|
||||||
|
|
||||||
from aodh import evaluator
|
from aodh import evaluator
|
||||||
from aodh.i18n import _, _LE
|
from aodh.i18n import _, _LE, _LW
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
@ -167,7 +167,8 @@ class EventAlarmEvaluator(evaluator.Evaluator):
|
|||||||
try:
|
try:
|
||||||
event = Event(e)
|
event = Event(e)
|
||||||
except InvalidEvent:
|
except InvalidEvent:
|
||||||
LOG.debug('Aborting evaluation of the event.')
|
LOG.warning(_LW('Event <%s> is invalid, aborting evaluation '
|
||||||
|
'for it.'), e)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for id, alarm in six.iteritems(
|
for id, alarm in six.iteritems(
|
||||||
|
Loading…
Reference in New Issue
Block a user