Merge pull request #3764 from ctrueden/log-ignore-hits

In verbose mode, log when files are ignored
This commit is contained in:
Adrian Sampson 2020-10-05 15:33:37 -04:00 committed by GitHub
commit a22e14f5ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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`