From: W. Trevor King Date: Thu, 16 Feb 2012 11:31:03 +0000 (-0500) Subject: Log reason for ignoring paths in Project._ignore_file(). X-Git-Tag: v0.2~10 X-Git-Url: http://git.tremily.us/?p=update-copyright.git;a=commitdiff_plain;h=b608accf60c84ad020a21b6ab849212b26978a51 Log reason for ignoring paths in Project._ignore_file(). --- 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