fix(observability): enrich CommitMemory plugin error log with workspace/scope/namespace context (#2398) #2402

Merged
agent-dev-a merged 1 commits from fix/2398-enrich-commit-memory-log into main 2026-06-07 21:46:08 +00:00
@@ -226,7 +226,7 @@ func (h *MemoriesHandler) Commit(c *gin.Context) {
Source: contract.MemorySourceUser,
})
if err != nil {
log.Printf("Commit memory error (plugin): %v", err)
log.Printf("Commit memory plugin error: workspace=%s scope=%s namespace=%s err_class=%T err=%q", workspaceID, body.Scope, nsName, err, err)
c.JSON(http.StatusInternalServerError, gin.H{"error": "failed to store memory"})
return
}