Spaces:
Running
Running
Download src/backend/base/langflow/logging/setup.py from opendigital/agent-flow: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/opendigital/agent-flow/resolve/main/src/backend/base/langflow/logging/setup.py
- Command line
-
hf download hf://spaces/opendigital/agent-flow/src/backend/base/langflow/logging/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/opendigital/agent-flow/resolve/main/src/backend/base/langflow/logging/setup.py
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 | |