diff --git a/src/main/java/com/m9d/sroom/gpt/service/GPTService.java b/src/main/java/com/m9d/sroom/gpt/service/GPTService.java index 64a5832d..aef0ec30 100644 --- a/src/main/java/com/m9d/sroom/gpt/service/GPTService.java +++ b/src/main/java/com/m9d/sroom/gpt/service/GPTService.java @@ -77,7 +77,9 @@ private MaterialVo getMaterialVo(String resultStr) throws NullPointerException { MaterialVo resultVo = null; try { resultVo = gson.fromJson(resultStr, MaterialVo.class); - log.info("received video material count is = {}", resultVo.getResults().size()); + if(resultVo.getResults().size() > 0) { + log.info("received video material count is = {}", resultVo.getResults().size()); + } } catch (JsonSyntaxException e) { log.error("Failed to parse JSON to MaterialVo. Input JSON: {}", resultStr, e); }