diff --git a/.github/workflows/distro_tests.yml b/.github/workflows/distro_tests.yml index d268fbf88..73c00602c 100644 --- a/.github/workflows/distro_tests.yml +++ b/.github/workflows/distro_tests.yml @@ -61,4 +61,4 @@ jobs: poetry env use python3.11 poetry install poetry run pytest --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=DEBUG . - poetry run pytest --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=INFO --log-level=DEBUG --log-capture-level=INFO --log-file=pytest_debug.log --show-capture=no . \ No newline at end of file + poetry run pytest --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=INFO --log-level=DEBUG --log-file=pytest_debug.log --show-capture=no . \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f2360c5e1..8864f43a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,7 +48,7 @@ jobs: poetry install - name: Run tests run: | - poetry run pytest --exitfirst --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=INFO --log-capture-level=INFO --log-level=DEBUG --log-file=pytest_debug.log --show-capture=no --cov-config=bbot/test/coverage.cfg --cov-report xml:cov.xml --cov=bbot . + poetry run pytest --exitfirst --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=INFO --log-level=DEBUG --log-file=pytest_debug.log --show-capture=no --cov-config=bbot/test/coverage.cfg --cov-report xml:cov.xml --cov=bbot . - name: Upload Debug Logs uses: actions/upload-artifact@v3 with: diff --git a/bbot/test/conftest.py b/bbot/test/conftest.py index 7cccc950d..82d158377 100644 --- a/bbot/test/conftest.py +++ b/bbot/test/conftest.py @@ -25,6 +25,10 @@ for h in root_logger.handlers: h.addFilter(lambda x: x.levelname not in ("STDOUT", "TRACE")) +console_handler = logging.StreamHandler() +console_handler.setLevel(logging.INFO) # Prevent DEBUG logs from going to console +root_logger.addHandler(console_handler) + CORE.merge_default(test_config)