Skip to content

Commit

Permalink
More logging for MusicBrainz requests
Browse files Browse the repository at this point in the history
Even more performance-isolating logging to help debug #2446.
  • Loading branch information
sampsyo committed Feb 20, 2017
1 parent 26408dd commit 8ccdb1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beets/autotag/mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def match_album(artist, album, tracks=None):
return

try:
log.debug(u'Searching for MusicBrainz releases with: {!r}', criteria)
res = musicbrainzngs.search_releases(
limit=config['musicbrainz']['searchlimit'].get(int), **criteria)
except musicbrainzngs.MusicBrainzError as exc:
Expand Down Expand Up @@ -424,6 +425,7 @@ def album_for_id(releaseid):
object or None if the album is not found. May raise a
MusicBrainzAPIError.
"""
log.debug(u'Requesting MusicBrainz release {}', releaseid)
albumid = _parse_id(releaseid)
if not albumid:
log.debug(u'Invalid MBID ({0}).', releaseid)
Expand Down

0 comments on commit 8ccdb1c

Please sign in to comment.