Skip to content

Commit

Permalink
reporter: Remove default logging to stderr
Browse files Browse the repository at this point in the history
Logging to stderr causes a lot of unnecessary output when system capture
is disabled, and isn't really necessary with the improved logging
capabilities, so remove it.

Users can still manually enable it with this in their conftest.py:

    def pytest_configure(config):
        logging.basicConfig(
            level=logging.INFO,
            format='%(levelname)7s: %(message)s',
            stream=sys.stderr,
        )

Signed-off-by: Joshua Watt <[email protected]>
  • Loading branch information
JoshuaWatt authored and Emantor committed Apr 27, 2023
1 parent 683839f commit 44d3a21
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions labgrid/pytestplugin/reporter.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
import logging
import sys
import os
import re
import colors
import pytest

from ..step import steps

logging.basicConfig(
level=logging.INFO,
format='%(levelname)7s: %(message)s',
stream=sys.stderr,
)


def safe_dupfile(f):
if pytest.__version__ < "6.0.0":
from _pytest.capture import safe_text_dupfile # pylint: disable=no-name-in-module
Expand Down

0 comments on commit 44d3a21

Please sign in to comment.