fix: 将原项目的console输出改为logger输出
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m11s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m11s
- 添加eslint,不允许使用console输出
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user