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

abbreviate_artistsort: Get rid of print statements #99

Merged
merged 2 commits into from Apr 19, 2017

Conversation

mineo
Copy link
Member

@mineo mineo commented Apr 17, 2017

Picards logging module is already imported, there's no need to reinvent debug
levels etc. here

I've loaded a classical album with this plugin active, the plugin showed some warnings, but the release loaded, so I suppose everything still works.

Picards logging module is already imported, there's no need to reinvent debug
levels etc. here
…message

Without this, the plugin doesn't work.
@Sophist-UK
Copy link
Contributor

I have no idea why I used print rather than log when I wrote this!!!

But don't forget to increment the version number.

@zas zas merged commit c61f968 into metabrainz:master Apr 19, 2017
@zas
Copy link
Collaborator

zas commented Apr 19, 2017

Those changes should be ported to 2.0 version too

print()
log.warning()
log.warning("Error: Unsorted text for %s has changed from '%s' to '%s'!" % (unsortTag, unsorts[i], new_unsort))
log.warning()
Copy link
Member

Choose a reason for hiding this comment

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

These empty log.warning()s are probably unneeded now, no?

Copy link
Collaborator

Choose a reason for hiding this comment

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

These empty log.warning()s are probably unneeded now, no?

Yes, i missed those, totally unneeded ;)

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.

None yet

4 participants