You've already forked FrameTour-BE
fix(puzzle): 优化拼图生成失败日志记录
- 修改日志记录格式,添加异常消息详情 - 保持错误响应信息的一致性
This commit is contained in:
@@ -42,7 +42,7 @@ public class PuzzleGenerateController {
|
|||||||
log.warn("拼图生成参数错误: {}", e.getMessage());
|
log.warn("拼图生成参数错误: {}", e.getMessage());
|
||||||
return ApiResponse.fail(e.getMessage());
|
return ApiResponse.fail(e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("拼图生成失败", e);
|
log.error("拼图生成失败:{}", e.getMessage());
|
||||||
return ApiResponse.fail("图片生成失败,请稍后重试");
|
return ApiResponse.fail("图片生成失败,请稍后重试");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user