pungi/1292.patch
2019-11-08 15:27:11 +01:00

27 lines
965 B
Diff

From cc0e7af866ec260126ec11aee68353bad590493f Mon Sep 17 00:00:00 2001
From: Lubomír Sedlář <lsedlar@redhat.com>
Date: Nov 08 2019 14:24:15 +0000
Subject: Get message from LogRecord with a method
Relates: https://pagure.io/releng/failed-composes/issue/469
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
---
diff --git a/pungi/compose.py b/pungi/compose.py
index ade5df2..84f2212 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: