report log

This commit is contained in:
root
2025-10-05 14:05:57 +05:00
parent 94be2beb47
commit 764df0dbb5
@@ -65,7 +65,7 @@ public class DeepResearchService {
.retrieve() .retrieve()
.bodyToMono(DeepResearchResponse.class) .bodyToMono(DeepResearchResponse.class)
// 👇 Log the successful response object here // 👇 Log the successful response object here
.doOnSuccess(response -> log.info("Deep research API response: {}", response)) .doOnSuccess(response -> log.info("Deep research API response: {}", response.getReport()))
.timeout(Duration.ofMillis(timeoutMs)) .timeout(Duration.ofMillis(timeoutMs))
.onErrorMap(WebClientResponseException.class, .onErrorMap(WebClientResponseException.class,
e -> new RuntimeException("Deep research API error: " + e.getResponseBodyAsString(), e)) e -> new RuntimeException("Deep research API error: " + e.getResponseBodyAsString(), e))