修复大小写

This commit is contained in:
xmdhs 2023-10-10 00:30:46 +08:00
parent ada87ca257
commit fa024e6ac2
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95
4 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
cmd/testserver
cmd/authlibskin/config.yaml

View File

@ -5,9 +5,9 @@ offlineUUID: true
port: "0.0.0.0:8080"
Log:
Level: "debug"
level: "debug"
# json 格式输出
Json: false
json: false
sql:
mysqlDsn: ""

View File

@ -12,6 +12,5 @@ func YamlDeCode(b []byte) (Config, error) {
if err != nil {
return c, fmt.Errorf("YamlDeCode: %w", err)
}
fmt.Println(c)
return c, nil
}

View File

@ -32,6 +32,8 @@ func ProvideSlog(c config.Config) slog.Handler {
level = slog.LevelWarn
case "error":
level = slog.LevelError
default:
level = slog.LevelDebug
}
o := &slog.HandlerOptions{Level: level}