Added module + filename + line number to logs output in Blackbox

This commit is contained in:
Shay Nehmad 2019-10-07 13:49:13 +03:00
parent ff3c455cb0
commit e0f4d1ed83
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
[pytest]
log_cli = 1
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)s] %(message)s
log_cli_format = %(asctime)s [%(levelname)s] %(module)s.%(funcName)s.%(lineno)d: %(message)s
log_cli_date_format=%H:%M:%S

View File

@ -49,6 +49,7 @@ class BasicTest(object):
self.log_success(timer)
return
sleep(DELAY_BETWEEN_ANALYSIS)
LOGGER.debug("Waiting until all analyzers passed. Time passed: {}".format(timer.get_time_taken()))
self.log_failure(timer)
assert False