In verbose mode, log when files are ignored

This commit is contained in:
Curtis Rueden 2020-10-04 20:47:17 -05:00
parent 56f1aa29ac
commit f0ea9da7b2
2 changed files with 6 additions and 0 deletions

View file

@ -197,6 +197,10 @@ def sorted_walk(path, ignore=(), ignore_hidden=False, logger=None):
skip = False
for pat in ignore:
if fnmatch.fnmatch(base, pat):
if logger:
logger.debug(u'ignoring {0} due to ignore rule {1}'.format(
base, pat
))
skip = True
break
if skip:

View file

@ -204,6 +204,8 @@ Fixes:
wiping out their beets database.
Thanks to user: `logan-arens`.
:bug:`1934`
* ``beet import`` now logs which files are ignored when in debug mode.
:bug:`3764`
* :doc:`/plugins/bpd`: Fix the transition to next track when in consume mode.
Thanks to :user:`aereaux`.
:bug:`3437`