Fix Registry debug log leakage into root logger output#381
Merged
Conversation
Collaborator
Author
|
Added repro samples here for clarity. Sample 1 — default local
|
vik-rant
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix noisy Registry debug output leaking to console when root/global logging is configured by ZenML.
This change makes
Registrya better library citizen by default:propagate=Falseby default inRegistry.__init__(while preserving opt-in override via kwargs)Root Cause
Registryemits debug logs in backend code (expected), but those records propagated to root logger handlers installed by ZenML at import time, causing unexpected CLI/debug spam.Changes
mindtrace/registry/mindtrace/registry/core/registry.pykwargs.setdefault("propagate", False)beforesuper().__init__(**kwargs)tests/unit/mindtrace/registry/core/test_registry_logging.pytest_registry_debug_logs_do_not_propagate_to_root_loggertests/unit/mindtrace/registry/core/test_registry.pyValidation
ds test --unit4174 passed, 68 skippedFixes #380