Suppress httpx logging
This commit is contained in:
parent
d6b66b464d
commit
974451edc7
1 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,10 @@ import logging
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.logging import RichHandler
|
from rich.logging import RichHandler
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||||
|
logging.getLogger("httpcore").setLevel(logging.WARNING)
|
||||||
|
|
||||||
|
|
||||||
def get_logger() -> logging.Logger:
|
def get_logger() -> logging.Logger:
|
||||||
logger = logging.getLogger("haiku.rag")
|
logger = logging.getLogger("haiku.rag")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue