chore: 调整用户控制器日志级别并新增文件信息记录

This commit is contained in:
richarjiang
2025-09-12 15:48:39 +08:00
parent 090b91e72d
commit cf02fda4ec

View File

@@ -222,9 +222,10 @@ export class UsersController {
} }
this.winstonLogger.log(`file: ${file}`, { this.winstonLogger.info(`receive file, fileSize: ${file.size}`, {
context: 'UsersController', context: 'UsersController',
userId: user?.sub, userId: user?.sub,
file,
}) })
const data = await this.cosService.uploadImage(user.sub, file); const data = await this.cosService.uploadImage(user.sub, file);