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()); } }