From 8afb02eef7ee75b44f40f3dba0dcd9b8522c6bbe Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 12 Sep 2016 11:23:56 +0200 Subject: [PATCH] bdd: Don't log VDEBUG lines without --verbose --- tests/end2end/fixtures/quteprocess.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index c9fab0049..55191b9aa 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -240,7 +240,9 @@ class QuteProc(testprocess.Process): raise log_line.use_color = self.request.config.getoption('--color') != 'no' - self._log(log_line) + verbose = self.request.config.getoption('--verbose') + if log_line.loglevel > logging.VDEBUG or verbose: + self._log(log_line) self._process_line(log_line) return log_line