From 8ab13fe4fb6efed89f3af0c1fe6843f9c4e84320 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Sat, 18 Jun 2022 22:42:21 +0200 Subject: [PATCH] comment changed; logging level of blob parser set to below debug --- pyinfra/parser/parser_composer.py | 4 ++-- test/unit_tests/consumer_test.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyinfra/parser/parser_composer.py b/pyinfra/parser/parser_composer.py index a0b7bc9..0e3f931 100644 --- a/pyinfra/parser/parser_composer.py +++ b/pyinfra/parser/parser_composer.py @@ -29,9 +29,9 @@ class EitherParserWrapper: def __log(self, result): if isinstance(result, Right): - logger.debug(f"{self.parser.__class__.__name__} succeeded or forwarded on {result.bind()}") + logger.log(logging.DEBUG - 5, f"{self.parser.__class__.__name__} succeeded or forwarded on {result.bind()}") else: - logger.debug(f"{self.parser.__class__.__name__} failed on {result.bind()}") + logger.log(logging.DEBUG - 5, f"{self.parser.__class__.__name__} failed on {result.bind()}") return result def parse(self, item: Either): diff --git a/test/unit_tests/consumer_test.py b/test/unit_tests/consumer_test.py index 95f0c62..a15d782 100644 --- a/test/unit_tests/consumer_test.py +++ b/test/unit_tests/consumer_test.py @@ -6,14 +6,15 @@ from funcy import lmapcat from pyinfra.exceptions import ProcessingFailure from pyinfra.utils.encoding import pack_for_upload -from pyinfra.visitor import ForwardingStrategy, SingleDownloadStrategy +from pyinfra.visitor.strategies.download.single import SingleDownloadStrategy +from pyinfra.visitor.strategies.response.forwarding import ForwardingStrategy logger = logging.getLogger() @pytest.mark.xfail( reason="NOTE: Something is messed up in the test setups." - "These tests fail when run together with other tests. Do not know yet which ones and why." + " These tests fail when run together with other tests. Do not know yet which ones and why." ) class TestConsumer: @pytest.mark.parametrize("queue_manager_name", ["mock", "pika"], scope="session")