Skip to content

Commit

Permalink
Set HTTPX logger level to WARNING
Browse files Browse the repository at this point in the history
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 <hldh214@gmail.com>
  • Loading branch information
hldh214 committed Sep 11, 2024
1 parent 0811777 commit 252c0ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recorder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 252c0ee

Please sign in to comment.