Skip to content

use logging instead of print in RewritePass#2835

Open
tgolsson wants to merge 1 commit intomicrosoft:mainfrom
tgolsson:ts/spammy-print
Open

use logging instead of print in RewritePass#2835
tgolsson wants to merge 1 commit intomicrosoft:mainfrom
tgolsson:ts/spammy-print

Conversation

@tgolsson
Copy link
Contributor

@tgolsson tgolsson commented Mar 3, 2026

Makes it possible to filter this out using the regular logging mechanics in Python.

count = self.rules.apply_to_model(model)
if count:
print(f"Applied {count} of general pattern rewrite rules.")
logger.info("Applied %s of general pattern rewrite rules.", count)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a config to display this by default? Could you do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants