fix: 将原项目的console输出改为logger输出
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m11s

- 添加eslint,不允许使用console输出
This commit is contained in:
2025-11-08 14:40:41 +08:00
parent 2a021cbaea
commit 660892f9e7
14 changed files with 17 additions and 14 deletions

View File

@ -46,7 +46,7 @@ export async function getFileMeta(id: string): Promise<FileMeta | null> {
};
} catch (error) {
if (error instanceof Error) {
console.error('Error fetching file metadata:', error.message);
logger.error('Error fetching file metadata:', error.message);
}
return null;
}