chore: update logging

This commit is contained in:
Siyuan Miao
2025-04-11 12:55:36 +02:00
parent 924b55059f
commit 0ba7902f82
13 changed files with 246 additions and 105 deletions

2
web.go
View File

@@ -69,7 +69,7 @@ func setupRouter() *gin.Engine {
r := gin.Default()
r.Use(gin_logger.SetLogger(
gin_logger.WithLogger(func(*gin.Context, zerolog.Logger) zerolog.Logger {
return ginLogger
return *ginLogger
}),
))
staticFS, _ := fs.Sub(staticFiles, "static")