Skip to content

fix: replace print() with logger.warning() in extensions catalog warnings - #3969

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/extensions-use-logger
Open

fix: replace print() with logger.warning() in extensions catalog warnings#3969
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/extensions-use-logger

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

print(..., file=sys.stderr) is inappropriate for library code - it bypasses the logging framework and can't be silenced or redirected by consumers.

Fix

Replaced with logger.warning() for proper log management. Removed unused local sys imports.

…ings

Print statements to stderr are not appropriate for library code that may
be consumed by tools or tests. Replaced with logger.warning() for proper
log management. Removed unused local sys imports.
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.

1 participant