处理异常抛出问题

develop
PL 4 months ago
parent e5b87627cf
commit 110177681b

@ -97,8 +97,9 @@ public class ChatMessageServiceImpl implements ChatMessageService {
}
return sseEmitter;
} catch (Exception e) {
log.info(e.getStackTrace().toString());
throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), 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()));
}
}

Loading…
Cancel
Save