fix: 函数名没有同步修改

This commit is contained in:
tiglog 2023-10-31 09:59:03 +08:00
parent 68424f4755
commit 611b1b52c9
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import (
)
func GinLogger(logfile string) gin.HandlerFunc {
log := logger.New(logger.NewProductionRotateBySize(logfile), logger.InfoLevel)
log := logger.New(logger.NewRotateBySize(logfile), logger.InfoLevel)
defer log.Sync()
return func(c *gin.Context) {
start := time.Now()

View File

@ -21,7 +21,7 @@ import (
)
func GinRecover(logfile string) gin.HandlerFunc {
log := logger.New(logger.NewProductionRotateBySize(logfile), logger.ErrorLevel)
log := logger.New(logger.NewRotateBySize(logfile), logger.ErrorLevel)
defer log.Sync()
return func(c *gin.Context) {
defer func() {