Use logger with name of local var logger_name

This commit is contained in:
Raphael Pierzina 2015-04-03 22:45:26 +02:00
parent 91a8b23aeb
commit 231feda2c8

View File

@ -32,7 +32,7 @@ def test_log_time(caplog):
logger_name = 'qt-tests'
with caplog.atLevel(logging.DEBUG, logger=logger_name):
with debug.log_time(logging.getLogger(), action='foobar'):
with debug.log_time(logging.getLogger(logger_name), action='foobar'):
time.sleep(0.1)
records = caplog.records()