Fix some logging and logging levels

This commit is contained in:
Ian Cordasco 2016-06-28 13:21:22 -05:00
parent c9fb680dff
commit 84af24f240
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
2 changed files with 5 additions and 5 deletions

View file

@ -218,7 +218,7 @@ class Manager(object):
def _run_checks_from_queue(self):
LOG.info('Running checks in parallel')
for checker in iter(self.process_queue.get, 'DONE'):
LOG.debug('Running checker for file "%s"', checker.filename)
LOG.info('Checking "%s"', checker.filename)
checker.run_checks(self.results_queue, self.statistics_queue)
self.results_queue.put('DONE')
@ -239,13 +239,13 @@ class Manager(object):
return False
basename = os.path.basename(path)
if utils.fnmatch(basename, exclude):
LOG.info('"%s" has been excluded', basename)
LOG.debug('"%s" has been excluded', basename)
return True
absolute_path = os.path.abspath(path)
match = utils.fnmatch(absolute_path, exclude)
LOG.info('"%s" has %sbeen excluded', absolute_path,
'' if match else 'not ')
LOG.debug('"%s" has %sbeen excluded', absolute_path,
'' if match else 'not ')
return match
def make_checkers(self, paths=None):

View file

@ -256,7 +256,7 @@ class Application(object):
LOG.info('Reporting errors')
results = self.file_checker_manager.report()
self.total_result_count, self.result_count = results
LOG.info('Found a total of %d results and reported %d',
LOG.info('Found a total of %d violations and reported %d',
self.total_result_count, self.result_count)
def initialize(self, argv):