Skip to content

Conversation

isatyamks
Copy link
Contributor

Adds a METAFLOW_DISABLE_LOGGING option to silence all internal Metaflow logs and status messages. When enabled, only user-generated logs (e.g., via structlog) are shown, making it easier to integrate with structured log collectors like JSON pipelines.

Changes

Added METAFLOW_DISABLE_LOGGING config option

Updated click.secho output to respect this flag

Documented in README.md

Closes #2429

- Updated string quotes from single to double for consistency in `serializer.py`, `tokens.py`, `zipp.py`, `metaflow_git.py`, `card_datastore.py`, `kubernetes_jobsets.py`, and `system_utils.py`.
- Reformatted multi-line function signatures and arguments for improved readability in `serializer.py`, `tokens.py`, and `system_utils.py`.
- Removed unnecessary comments and cleaned up docstrings in `card_datastore.py`.
- Ensured consistent use of trailing commas in dictionary unpacking in `kubernetes_jobsets.py`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable metaflow's logger
1 participant