Revert "feat(log): add error logging middleware for improved error handling (#182)"

This reverts commit 5e8d8d070a.
This commit is contained in:
j2rong4cn
2025-06-19 09:56:45 +08:00
parent 79521db8e0
commit 70b937e031
2 changed files with 0 additions and 58 deletions

View File

@ -19,7 +19,6 @@ import (
"github.com/OpenListTeam/OpenList/internal/fs"
"github.com/OpenListTeam/OpenList/pkg/utils"
"github.com/OpenListTeam/OpenList/server"
"github.com/OpenListTeam/OpenList/server/middlewares"
"github.com/OpenListTeam/sftpd-openlist"
ftpserver "github.com/fclairamb/ftpserverlib"
"github.com/gin-gonic/gin"
@ -48,7 +47,6 @@ the address is defined in config file`,
gin.SetMode(gin.ReleaseMode)
}
r := gin.New()
r.Use(middlewares.ErrorLogging())
r.Use(gin.LoggerWithWriter(log.StandardLogger().Out), gin.RecoveryWithWriter(log.StandardLogger().Out))
server.Init(r)
var httpHandler http.Handler = r