[logging] Use 'warnings.warn' appropriately
See original GitHub issueDescribe your feature request
Throughout our codebase, we don’t use warnings.warn and rather rely on logger.warn to inform users of possible negative outcomes.
Instead, we should use warnings.warn appropriately:
https://docs.python.org/2/howto/logging.html#when-to-use-logging
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Logging.warning vs. warnings.warn - Discussions on Python.org
A question on the difference between logging.warning and warnings.warn came up in the review of my PR: The logging how to has this...
Read more >What's the difference between logging.warn and logging ...
logging.warn() was kept for backwards compatibility but a deprecation warning was added. logging.warning() is what everyone is supposed to use.
Read more >Integrating Python's logging and warnings packages - Medium
Do you know a simple way to integrate both warnings and logging facilities? ... your loggers properly (typically by using logging.config.
Read more >logging.warning vs logging.warn | Python in Plain English
As of Python 3.3, logger.warn has been deprecated and logger.warning must be used. Even though logger.warn is still backwards compatible, you ...
Read more >logging — Report Status, Error, and Informational Messages
For example, if a message is CRITICAL , and the logger is set to ERROR , the message is emitted (50 > 40)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

yep!
On Fri, Dec 11, 2020 at 2:24 PM Shril Kumar notifications@github.com wrote:
@ofey404 Do you want to work on it?