refactor: Sanitize log inputs in agent and session handlers to enhance security

This commit is contained in:
wizardchen
2025-11-26 19:08:19 +08:00
parent d41f8afe55
commit 85caee044a
4 changed files with 5 additions and 7 deletions
-2
View File
@@ -87,7 +87,6 @@ func (s *chunkService) GetChunkByID(ctx context.Context, id string) (*types.Chun
chunk, err := s.chunkRepository.GetChunkByID(ctx, tenantID, id)
if err != nil {
logger.ErrorWithFields(ctx, err, map[string]interface{}{
"chunk_id": id,
"tenant_id": tenantID,
})
return nil, err
@@ -213,7 +212,6 @@ func (s *chunkService) DeleteChunk(ctx context.Context, id string) error {
err := s.chunkRepository.DeleteChunk(ctx, tenantID, id)
if err != nil {
logger.ErrorWithFields(ctx, err, map[string]interface{}{
"chunk_id": id,
"tenant_id": tenantID,
})
return err