server/tests: colorize verbose output
This commit is contained in:
parent
172b956e48
commit
205f372f76
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue