完善 HTTP 处理逻辑,优化请求解析和认证流程
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user