fix:修复Logger

This commit is contained in:
SengokuCola
2025-05-01 01:49:10 +08:00
parent ccbdc6ffe0
commit f363b7ca00
3 changed files with 20 additions and 10 deletions

View File

@@ -1052,9 +1052,9 @@ class EmojiManager:
logger.error(f"[错误] 删除文件时出错 ({file_full_path}): {str(e)}")
if cleaned_count > 0:
logger.success(f"[清理] 在目录 {emoji_dir} 中清理了 {cleaned_count}未追踪的文件")
logger.success(f"[清理] 在目录 {emoji_dir} 中清理了 {cleaned_count}破损表情包")
else:
logger.info(f"[清理] 目录 {emoji_dir} 中没有发现未追踪的文件")
logger.info(f"[清理] 目录 {emoji_dir} 中没有需要清理的")
except Exception as e:
logger.error(f"[错误] 清理未使用表情包文件时出错 ({emoji_dir}): {str(e)}")