You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
333 B
13 lines
333 B
import logging
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
|
def pytest_exception_interact(node, call, report):
|
|
try:
|
|
cluster = node._testcase.cluster
|
|
log.error("Zookeeper cluster logs:")
|
|
for logs in cluster.get_logs():
|
|
log.error(logs)
|
|
except Exception:
|
|
log.exception("Cannot get ZK logs:")
|