Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced deprecated logger methods 'logger.warn' for 'logger.warning'. #3355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bomxacalaka
Copy link

What does this PR do?
This PR replaces the deprecated logger.warn method with logger.warning in 4 instances in a single file.

Why was this change made?
Fixing Warnings: The logger.warn method has been deprecated and triggers warnings during tests. Replacing it with logger.warning resolves these warnings and ensures compatibility with the current version of Python.
Improving Code Clarity: The updated logger.warning method is the correct and preferred approach for logging warnings, which improves the clarity and maintainability of the codebase.
This change should have no functional impact but improves adherence to Python logging best practices.

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