Show a warning if a RE finds nothing

This commit is contained in:
Carsten Grohmann 2021-07-21 21:06:20 +02:00
parent 000b6635ec
commit e859317685

View File

@ -511,6 +511,8 @@ class OOMAnalyser(object):
match = rec.search(self.oom_entity.text) match = rec.search(self.oom_entity.text)
if match: if match:
self.results.update(match.groupdict()) self.results.update(match.groupdict())
else:
warning('No match for regex: "{}"'.format(rec.pattern))
match = self.REC_MEM_NODEINFO.search(self.oom_entity.text) match = self.REC_MEM_NODEINFO.search(self.oom_entity.text)
if match: if match: