feat(platform): 日志管理 - 统一日志出口并屏蔽查询与 Agent 流式事件日志
新增 internal/logging,slog、标准库 log、GORM 与 Gin 访问日志共用同一 Handler,由 CANVAS_LOG_LEVEL / CANVAS_LOG_FORMAT 控制。info 级别不再输出成功的查询类请求、成功 SQL、message_end 等 Agent 流式事件和常规画布自动保存;4xx/5xx、慢请求、慢 SQL、SQL 失败与 panic 仍会记录,SQL 不内联参数值。
This commit is contained in:
@@ -28,6 +28,7 @@ services:
|
||||
CANVAS_CORS_ORIGINS: ${CANVAS_CORS_ORIGINS:-http://localhost:3000}
|
||||
# 服务器访问地址:Agent 看图与生成参考图都靠它签发上游可取到的短时链接。
|
||||
CANVAS_PUBLIC_BASE_URL: ${CANVAS_PUBLIC_BASE_URL:-}
|
||||
CANVAS_LOG_LEVEL: ${CANVAS_LOG_LEVEL:-debug}
|
||||
GIN_MODE: debug
|
||||
volumes:
|
||||
- type: bind
|
||||
|
||||
Reference in New Issue
Block a user