Skip to content

Commit

Permalink
saturate aiosqlite, filelock, and watchdog logging at info level whil…
Browse files Browse the repository at this point in the history
…e testing (Chia-Network#17600)

saturate aiosqlite, filelock, and watchdog logging at info level
  • Loading branch information
altendky authored Mar 5, 2024
1 parent f22b7ad commit fbe8ef6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import datetime
import functools
import json
import logging
import math
import multiprocessing
import os
Expand Down Expand Up @@ -458,6 +459,10 @@ def pytest_addoption(parser: pytest.Parser):


def pytest_configure(config):
for logger_name in ["aiosqlite", "filelock", "watchdog"]:
logger = logging.getLogger(logger_name)
logger.setLevel(max(logger.getEffectiveLevel(), logging.INFO))

config.addinivalue_line("markers", "benchmark: automatically assigned by the benchmark_runner fixture")

benchmark_repeats = config.getoption("--benchmark-repeats")
Expand Down

0 comments on commit fbe8ef6

Please sign in to comment.