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

Breaking change in API #10

Open
danielchatfield opened this issue Sep 4, 2017 · 4 comments
Open

Breaking change in API #10

danielchatfield opened this issue Sep 4, 2017 · 4 comments
Labels

Comments

@danielchatfield
Copy link

Hi, thanks for all your hard work on this.

This commit e26170d introduced a breaking change to the API. Is there a way that I can change my code to:

  • behave the same way it used to
  • be tolerant of people with the old API and the new API
@untitaker
Copy link
Collaborator

You can replace get_level with logging.getLogger(...).getLevel (same with set_level). This part is backwards compatible.

The rest less so, please take a look at pimutils/vdirsyncer@6954b26

You could detect the version of click-log and apply the correct decorators depending on that.

@danielchatfield
Copy link
Author

@untitaker Thanks for the quick response.

I think I'll have to do detect the version and then either provide logger or not depending on the version.

@untitaker
Copy link
Collaborator

untitaker commented Sep 4, 2017 via email

@danielchatfield
Copy link
Author

@untitaker It's used in a bunch of internal tools that people usually update by just git pull so we try and avoid introducing new dependencies / changing required versions as much as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants