Move logging format config to tox.ini to avoid duplicate log capture in pytest output

This commit is contained in:
Dana Powers 2016-03-13 09:25:25 -07:00
parent e42383dd84
commit f83d294441
2 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,5 @@ class Timer(object):
self.end = time.time()
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.service').setLevel(logging.ERROR)

View File

@ -5,6 +5,7 @@ envlist = py{26,27,33,34,35,py}, docs
testpaths = kafka test
doctest_optionflags = modules
addopts = --durations=10
log_format = %(created)f %(filename)-23s %(threadName)s %(message)s
[testenv]
deps =