diff --git a/src/main/java/com/example/service/base/DialogflowClientService.java b/src/main/java/com/example/service/base/DialogflowClientService.java index 6bf2b75..c46deb1 100644 --- a/src/main/java/com/example/service/base/DialogflowClientService.java +++ b/src/main/java/com/example/service/base/DialogflowClientService.java @@ -126,6 +126,7 @@ public class DialogflowClientService { // Build the final DetectIntentRequest Protobuf object DetectIntentRequest detectIntentRequest = detectIntentRequestBuilder.build(); + logger.debug("DetectIntentRequest created for session {}: {}", sessionId, detectIntentRequest); return Mono.fromCallable(() -> { logger.debug("Calling Dialogflow CX detectIntent for session: {}", sessionId); return sessionsClient.detectIntent(detectIntentRequest); diff --git a/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java b/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java index 85ed4d0..b45c3ee 100644 --- a/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java +++ b/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java @@ -54,7 +54,7 @@ public class MemoryStoreConversationService { return redisTemplate.opsForValue().get(sessionKey) .doOnSuccess(session -> { if (session != null) { - logger.info("Found existing session in Memorystore: {}", session); + logger.info("Found existing session in Memorystore: {}", sessionKey); } else { logger.info("No session found in Memorystore for key: {}", sessionKey); } diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 6d58868..513f673 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -69,8 +69,8 @@ firestore.data.importer.enabled=${GCP_FIRESTORE_IMPORTER_ENABLE} # ========================================================= # LOGGING Configuration # ========================================================= -logging.level.root=INFO -logging.level.com.example=INFO +logging.level.root=${LOGGING_LEVEL_ROOT:INFO} +logging.level.com.example=${LOGGING_LEVEL_COM_EXAMPLE:INFO} # ========================================================= # ConversationContext Configuration # ========================================================= diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 1904dee..dea84f3 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -71,4 +71,9 @@ firestore.data.importer.enabled=${GCP_FIRESTORE_IMPORTER_ENABLE} # LOGGING Configuration # ========================================================= logging.level.root=${LOGGING_LEVEL_ROOT:INFO} -logging.level.com.example=${LOGGING_LEVEL_COM_EXAMPLE:INFO} \ No newline at end of file +logging.level.com.example=${LOGGING_LEVEL_COM_EXAMPLE:INFO} +# ========================================================= +# ConversationContext Configuration +# ========================================================= +conversation.context.message.limit=${CONVERSATION_CONTEXT_MESSAGE_LIMIT} +conversation.context.days.limit=${CONVERSATION_CONTEXT_DAYS_LIMIT} \ No newline at end of file diff --git a/src/main/resources/application-qa.properties b/src/main/resources/application-qa.properties index 1904dee..dea84f3 100644 --- a/src/main/resources/application-qa.properties +++ b/src/main/resources/application-qa.properties @@ -71,4 +71,9 @@ firestore.data.importer.enabled=${GCP_FIRESTORE_IMPORTER_ENABLE} # LOGGING Configuration # ========================================================= logging.level.root=${LOGGING_LEVEL_ROOT:INFO} -logging.level.com.example=${LOGGING_LEVEL_COM_EXAMPLE:INFO} \ No newline at end of file +logging.level.com.example=${LOGGING_LEVEL_COM_EXAMPLE:INFO} +# ========================================================= +# ConversationContext Configuration +# ========================================================= +conversation.context.message.limit=${CONVERSATION_CONTEXT_MESSAGE_LIMIT} +conversation.context.days.limit=${CONVERSATION_CONTEXT_DAYS_LIMIT} \ No newline at end of file