调整日志库为zap。

This commit is contained in:
Mr. Lan
2020-08-15 23:34:37 +08:00
parent 9a8ea8d493
commit 8b8d086432
31 changed files with 253 additions and 205 deletions

View File

@@ -2,13 +2,13 @@ package system
import (
"ferry/models/system"
"ferry/pkg/logger"
"ferry/tools"
"ferry/tools/app"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/google/uuid"
log "github.com/sirupsen/logrus"
)
/*
@@ -265,7 +265,7 @@ func InsetSysUserAvatar(c *gin.Context) {
guid := uuid.New().String()
filPath := "static/uploadfile/" + guid + ".jpg"
for _, file := range files {
log.Println(file.Filename)
logger.Info(file.Filename)
// 上传文件至指定目录
err = c.SaveUploadedFile(file, filPath)
if err != nil {