fix: 整理日志、添加颜色、使用统一的日志函数以提高日志可读性

This commit is contained in:
XBB committed 2024-06-04 02:59:35 +08:00
1 parent c698ce9562
commit bac2a6b034
15 files changed
+96 -68

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ export async function encodeSilk(filePath: string) {
const fileHeader = buffer.toString('hex', 0, bytesToRead);
return fileHeader;
} catch (err) {
console.error('读取文件错误:', err);
logError('读取文件错误:', err);
return;
}
}