Skip to content

Commit 2f7347f

Browse files
committed
supressed unwanted log
1 parent d0e3de4 commit 2f7347f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AgentCrew/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,14 @@ def cli():
5252
"""Agentcrew - AI Assistant and Agent Framework"""
5353
from AgentCrew.modules import logger
5454
import tempfile
55+
import logging
5556

5657
formatter = "{time} - {name} - {level} - {message}"
5758
log_level = os.getenv("AGENTCREW_LOG_LEVEL", "ERROR").upper()
59+
60+
httpx_logger = logging.getLogger("httpx")
61+
httpx_logger.setLevel(logging.ERROR)
62+
5863
if os.getenv("AGENTCREW_ENV", "development") == "production":
5964
log_dir_path = os.getenv("AGENTCREW_LOG_PATH", tempfile.gettempdir())
6065
os.makedirs(log_dir_path, exist_ok=True)

0 commit comments

Comments
 (0)