From 252c0eeab65d0db3577a82f94b4ded08dfc662cc Mon Sep 17 00:00:00 2001 From: hldh214 Date: Wed, 11 Sep 2024 15:24:18 +0900 Subject: [PATCH] Set HTTPX logger level to WARNING Added configuration to set the HTTPX logger level to WARNING in `recorder/__init__.py`. This change helps in reducing the logging verbosity of HTTPX while maintaining informative logs for the overall application. Signed-off-by: hldh214 --- recorder/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recorder/__init__.py b/recorder/__init__.py index 59ee759..67b9bcd 100644 --- a/recorder/__init__.py +++ b/recorder/__init__.py @@ -24,6 +24,9 @@ def get_config(): config = get_config() +httpx_logger = logging.getLogger('httpx') +httpx_logger.setLevel(logging.WARNING) + logger = logging.getLogger(__name__) handler = logging.FileHandler(filename=os.path.join(base_path, 'recorder.log')) logger.setLevel(logging.INFO)