Show a warning if a RE finds nothing
This commit is contained in:
parent
000b6635ec
commit
e859317685
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user