Suppress warnings in cli
This commit is contained in:
parent
455d90684b
commit
ddaf1cb4d7
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
import warnings
|
||||
|
||||
from rich.console import Console
|
||||
from rich.logging import RichHandler
|
||||
|
|
@ -50,4 +51,6 @@ def configure_cli_logging(level: int = logging.INFO) -> logging.Logger:
|
|||
logger = get_logger()
|
||||
logger.setLevel(level)
|
||||
logger.propagate = False
|
||||
|
||||
warnings.filterwarnings("ignore")
|
||||
return logger
|
||||
|
|
|
|||
Loading…
Reference in a new issue