Tai Truong
fix readme
d202ada
raw
history blame
373 Bytes
from loguru import logger
LOGGING_CONFIGURED = False
def disable_logging() -> None:
global LOGGING_CONFIGURED # noqa: PLW0603
if not LOGGING_CONFIGURED:
logger.disable("langflow")
LOGGING_CONFIGURED = True
def enable_logging() -> None:
global LOGGING_CONFIGURED # noqa: PLW0603
logger.enable("langflow")
LOGGING_CONFIGURED = True