Move logging format config to tox.ini to avoid duplicate log capture in pytest output
This commit is contained in:
parent
e42383dd84
commit
f83d294441
|
@ -143,7 +143,5 @@ class Timer(object):
|
||||||
self.end = time.time()
|
self.end = time.time()
|
||||||
self.interval = self.end - self.start
|
self.interval = self.end - self.start
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
|
||||||
format="%(asctime)-15s %(name)-20s %(levelname)-10s %(message)s")
|
|
||||||
logging.getLogger('test.fixtures').setLevel(logging.ERROR)
|
logging.getLogger('test.fixtures').setLevel(logging.ERROR)
|
||||||
logging.getLogger('test.service').setLevel(logging.ERROR)
|
logging.getLogger('test.service').setLevel(logging.ERROR)
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -5,6 +5,7 @@ envlist = py{26,27,33,34,35,py}, docs
|
||||||
testpaths = kafka test
|
testpaths = kafka test
|
||||||
doctest_optionflags = modules
|
doctest_optionflags = modules
|
||||||
addopts = --durations=10
|
addopts = --durations=10
|
||||||
|
log_format = %(created)f %(filename)-23s %(threadName)s %(message)s
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in New Issue