From b608accf60c84ad020a21b6ab849212b26978a51 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 16 Feb 2012 06:31:03 -0500 Subject: [PATCH] Log reason for ignoring paths in Project._ignore_file(). --- update_copyright/project.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_copyright/project.py b/update_copyright/project.py index de8fbed..b5c2c4c 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -231,7 +231,10 @@ class Project (object): if self._ignored_paths is not None: for path in self._ignored_paths: if _fnmatch.fnmatch(filename, path): + _LOG.debug('ignoring {} (matched {})'.format( + filename, path)) return True if self._vcs and not self._vcs.is_versioned(filename): + _LOG.debug('ignoring {} (not versioned))'.format(filename)) return True return False -- 2.26.2