diff --git a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java index 66505e6..2b77d6c 100644 --- a/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java +++ b/src/main/java/cn/teammodel/service/impl/ChatMessageServiceImpl.java @@ -97,10 +97,10 @@ public class ChatMessageServiceImpl implements ChatMessageService { } return sseEmitter; } catch (Exception e) { - log.error(e.getMessage()+ e.getStackTrace().toString()); - throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), e.getMessage()+ e.getStackTrace().toString()); + log.info(Arrays.toString(e.getStackTrace())); + log.error("{}-{}", e.getMessage(), Arrays.toString(e.getStackTrace())); + throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), Arrays.toString(e.getStackTrace())); } - } /**