From 84af24f240fe8482bb94b80542f9102f8840a90f Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 28 Jun 2016 13:21:22 -0500 Subject: [PATCH] Fix some logging and logging levels --- src/flake8/checker.py | 8 ++++---- src/flake8/main/application.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/flake8/checker.py b/src/flake8/checker.py index 06c4676..f7bd540 100644 --- a/src/flake8/checker.py +++ b/src/flake8/checker.py @@ -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): diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py index ef31713..b1e0772 100644 --- a/src/flake8/main/application.py +++ b/src/flake8/main/application.py @@ -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):