class process_helper(process_helper_interface):
def __init__(self):
self.logger = logging.getLogger(__name__)
async def info(self, message):
self.logger.info(message)
class xxxx:
async def get_file_md5_by_chunk(self, file_path: str, chunk_size=65536):
async with aiofiles.open(file_path, "rb") as fp:
while True:
chunk = await fp.read(chunk_size)
if not chunk:
break
await self.set_info(file_path)
yield hashlib.md5(chunk).hexdigest()
设成printf,加上async/await还是去掉,日志信息都不显示
这是咋回事
--
修改:iwannabe FROM 119.139.197.*
FROM 119.139.197.*