mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 16:14:18 +00:00
Log tokens at a lower level than debug
This commit is contained in:
parent
e2314c38ed
commit
0d3506b457
1 changed files with 4 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
import tokenize
|
import tokenize
|
||||||
|
|
||||||
|
import flake8
|
||||||
from flake8 import defaults
|
from flake8 import defaults
|
||||||
from flake8 import exceptions
|
from flake8 import exceptions
|
||||||
from flake8 import utils
|
from flake8 import utils
|
||||||
|
|
@ -345,7 +346,7 @@ def log_token(log, token):
|
||||||
pos = '[%s:%s]' % (token[2][1] or '', token[3][1])
|
pos = '[%s:%s]' % (token[2][1] or '', token[3][1])
|
||||||
else:
|
else:
|
||||||
pos = 'l.%s' % token[3][0]
|
pos = 'l.%s' % token[3][0]
|
||||||
log.debug('l.%s\t%s\t%s\t%r' %
|
log.log(flake8._EXTRA_VERBOSE, 'l.%s\t%s\t%s\t%r' %
|
||||||
(token[2][0], pos, tokenize.tok_name[token[0]],
|
(token[2][0], pos, tokenize.tok_name[token[0]],
|
||||||
token[1]))
|
token[1]))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue