From e859317685221f34673b3dc388460c72cb5fcf8e Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 21 Jul 2021 21:06:20 +0200 Subject: [PATCH] Show a warning if a RE finds nothing --- OOMAnalyser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 6bb1389..a89a25f 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -511,6 +511,8 @@ class OOMAnalyser(object): match = rec.search(self.oom_entity.text) if match: self.results.update(match.groupdict()) + else: + warning('No match for regex: "{}"'.format(rec.pattern)) match = self.REC_MEM_NODEINFO.search(self.oom_entity.text) if match: