From cf1d4cbf30db73aad383000429dfdf8db5ceb1fe Mon Sep 17 00:00:00 2001 From: PL <774412461@qq.com> Date: Fri, 30 Aug 2024 11:24:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E6=9F=A5=E6=B5=8B=E8=AF=95=E6=97=A0?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=EF=BC=8C=E6=AD=A3=E5=BC=8F=E7=AB=99=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/teammodel/service/impl/ChatMessageServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java index 9b4578c..ba721a0 100644 --- a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java +++ b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java @@ -81,6 +81,7 @@ public class ChatMessageServiceImpl implements ChatMessageService { if (!StringUtils.isEmpty(text)) { chatCommentsDto.setText(text); } else { + log.info("参数错误"); throw new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "参数错误"); } @@ -96,7 +97,8 @@ public class ChatMessageServiceImpl implements ChatMessageService { } return sseEmitter; } catch (Exception e) { - throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), e.getMessage()); + log.info(e.getStackTrace().toString()); + throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), e.getStackTrace().toString()); } }