server/tests: colorize verbose output

This commit is contained in:
rr- 2016-05-11 22:08:10 +02:00
parent 172b956e48
commit 205f372f76
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ def query_counter():
def query_logger(): def query_logger():
if pytest.config.option.verbose > 0: if pytest.config.option.verbose > 0:
import logging import logging
import coloredlogs
coloredlogs.install(fmt='[%(asctime)-15s] %(name)s %(message)s', isatty=True)
logging.basicConfig() logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO) logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)