Merge pull request #6 from Stitch-z/feature-tutorial-assistant

update file tool log
This commit is contained in:
Stitch-z 2023-09-11 10:21:38 +08:00 committed by GitHub
commit 479977d27a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ class File:
full_path = root_path / filename
async with aiofiles.open(full_path, mode="wb") as writer:
await writer.write(content)
logger.info(f"Successfully write docx: {full_path}")
logger.info(f"Successfully write file: {full_path}")
return full_path
except Exception as e:
logger.error(f"Error writing file: {e}")