From 254d0cebffedc201b8cb3269c81bf55e67a047e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 8 Nov 2019 15:24:15 +0100 Subject: [PATCH] Get message from LogRecord with a method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relates: https://pagure.io/releng/failed-composes/issue/469 Signed-off-by: Lubomír Sedlář --- pungi/compose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi/compose.py b/pungi/compose.py index ade5df24..84f22124 100644 --- a/pungi/compose.py +++ b/pungi/compose.py @@ -137,7 +137,8 @@ class Compose(kobo.log.LoggingBase): class ExcludingArchLogFilter(logging.Filter): def filter(self, record): - if 'Populating package set for arch:' in record.message or \ + message = record.getMessage() + if 'Populating package set for arch:' in message or \ (record.funcName and record.funcName == 'is_excluded'): return True else: