Skip to content

fix: replace print() with logger.warning() in presets catalog warning - #3970

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

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

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

print(..., file=sys.stderr) bypasses the logging framework and cannot be silenced or redirected by consumers.

Fix

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

Print to stderr is inappropriate for library code. Replaced with
logger.warning() for proper log management. Removed unused sys import.
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