mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +00:00
Fix some logging and logging levels
This commit is contained in:
parent
c9fb680dff
commit
84af24f240
2 changed files with 5 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue