Log reason for ignoring paths in Project._ignore_file().
authorW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 11:31:03 +0000 (06:31 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 11:31:03 +0000 (06:31 -0500)
update_copyright/project.py

index de8fbed9a15ace85e302f06343d6c4065838e128..b5c2c4c5ea5c2606cf951516e57304a5adfde29c 100644 (file)
@@ -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