diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-03-14 21:37:50 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-03-14 21:37:50 -0500 |
| commit | 0d3506b45753a3115ecb14f804464c2cd58af29a (patch) | |
| tree | 71ac57374606e8bcb47f354dd497bd3d5870171a /flake8/processor.py | |
| parent | e2314c38ed464812e04be5fba3f7e2091cbc5500 (diff) | |
| download | flake8-0d3506b45753a3115ecb14f804464c2cd58af29a.tar.gz | |
Log tokens at a lower level than debug
Diffstat (limited to 'flake8/processor.py')
| -rw-r--r-- | flake8/processor.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/flake8/processor.py b/flake8/processor.py index 30c0e96..9ad7751 100644 --- a/flake8/processor.py +++ b/flake8/processor.py @@ -5,6 +5,7 @@ import re import sys import tokenize +import flake8 from flake8 import defaults from flake8 import exceptions from flake8 import utils @@ -345,9 +346,9 @@ def log_token(log, token): pos = '[%s:%s]' % (token[2][1] or '', token[3][1]) else: pos = 'l.%s' % token[3][0] - log.debug('l.%s\t%s\t%s\t%r' % - (token[2][0], pos, tokenize.tok_name[token[0]], - token[1])) + log.log(flake8._EXTRA_VERBOSE, 'l.%s\t%s\t%s\t%r' % + (token[2][0], pos, tokenize.tok_name[token[0]], + token[1])) def expand_indent(line): |
