diff --git a/src/main/java/com/knowledge/base/infrastructure/util/http/SseOutputAdapter.java b/src/main/java/com/knowledge/base/infrastructure/util/http/SseOutputAdapter.java index 2bda21f..011ddba 100644 --- a/src/main/java/com/knowledge/base/infrastructure/util/http/SseOutputAdapter.java +++ b/src/main/java/com/knowledge/base/infrastructure/util/http/SseOutputAdapter.java @@ -1,9 +1,11 @@ package com.knowledge.base.infrastructure.util.http; +import lombok.extern.slf4j.Slf4j; import org.springframework.web.servlet.mvc.method.annotation.SseEmitter; import java.io.IOException; +@Slf4j public class SseOutputAdapter implements WriterAdapter { private final SseEmitter emitter; @@ -20,6 +22,7 @@ public class SseOutputAdapter implements WriterAdapter { // 如果 line 以 "data: " 开头,则去除该前缀 if (line.startsWith("data: ")) { + log.debug("[LLM-SSE] line received: {}", line); line = line.substring(6).trim(); }