def printLog():
### Pull the contents back into a string and close the stream
global log_capture_string
log_contents = log_capture_string.getvalue()
log_capture_string.close()
log_capture_string = StringIO()
logger.handlers[0].stream=log_capture_string
print(log_contents.lower())
## run a runction in an async thread. better than ui.in_background for this application, because it is not queued up
评论列表
文章目录