adjust errors and logger

This commit is contained in:
Shen Junzheng
2025-04-01 13:09:59 +08:00
parent f31953c42b
commit 67c9623cea
49 changed files with 553 additions and 981 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/google/uuid"
log "github.com/sirupsen/logrus"
"github.com/rs/zerolog/log"
)
const (
@@ -85,7 +85,7 @@ func (m *MCP) HandleMessages(c *gin.Context) {
return
}
log.Printf("收到消息: %v\n", req)
log.Debug().Msgf("session: %s, request: %s", sessionID, req)
select {
case m.ProcessChan <- ProcessCtx{Session: session, Request: &req}:
default: