完善 HTTP 处理逻辑,优化请求解析和认证流程

This commit is contained in:
2025-03-03 10:15:48 +08:00
parent d8c8b22123
commit cc0b74c5c2
3 changed files with 144 additions and 25 deletions

View File

@@ -80,7 +80,8 @@ func Start() {
func initLog() {
writer := colorable.NewColorable(os.Stdout)
logger := slog.New(tint.NewHandler(writer, &tint.Options{
Level: slog.LevelDebug,
Level: slog.LevelDebug,
TimeFormat: time.RFC3339,
ReplaceAttr: func(_ []string, attr slog.Attr) slog.Attr {
err, ok := attr.Value.Any().(error)
if !ok {