Skip to content

Commit 975e585

Browse files
author
glin1993@outlook.com
committed
Feat(Log): Add diagnostic log to /product/add endpoint
Adds an INFO level diagnostic log message at the beginning of the create_memory function to help verify code deployment.
1 parent 702d3e1 commit 975e585

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/memos/api/routers/product_router.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def get_all_memories(memory_req: GetMemoryPlaygroundRequest):
188188
@router.post("/add", summary="add a new memory", response_model=SimpleResponse)
189189
def create_memory(memory_req: MemoryCreateRequest):
190190
"""Create a new memory for a specific user."""
191+
logger.info("DIAGNOSTIC: /product/add endpoint called. This confirms the new code is deployed.")
191192
# Initialize status_tracker outside try block to avoid NameError in except blocks
192193
status_tracker = None
193194

src/memos/mem_scheduler/general_scheduler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ def _process_memories_with_reader(
636636
}
637637
)
638638
if kb_log_content:
639+
logger.info("DIAGNOSTIC: Preparing to create event log for KB update in _process_memories_with_reader.")
639640
event = self.create_event_log(
640641
label="knowledgeBaseUpdate",
641642
from_memory_type=USER_INPUT_TYPE,

0 commit comments

Comments
 (0)