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

[IMP] *: warn -> warning #274

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Conversation

MiquelRForgeFlow
Copy link
Contributor

@MiquelRForgeFlow MiquelRForgeFlow commented Jan 18, 2022

Logger.warn() is deprecated in last python versions, and we should try to avoid filling logs with useless DeprecationWarning's.

Selection_154

Logger.warn() is deprecated in last python versions, and we should try to avoid filling logs with useless DeprecationWarning's.
Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

thnaks.

@pedrobaeza
Copy link
Member

But is this supported in all expected Python versions? That's from 2.7

@legalsylvain
Copy link
Contributor

logging.warning should work in python 2.7.

https://python.readthedocs.io/en/v2.7.2/library/logging.html#logging.warning

@pedrobaeza
Copy link
Member

OK then:

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch master-ocabot-merge-pr-274-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jan 18, 2022
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

It looks like something changed on master in the meantime.
Let me try again (no action is required from you).
Prepared branch master-ocabot-merge-pr-274-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2c57a5d into OCA:master Jan 18, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2c57a5d. Thanks a lot for contributing to OCA. ❤️

@MiquelRForgeFlow MiquelRForgeFlow deleted the master-fix-warnings branch January 18, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants