feat:优化项目信息

This commit is contained in:
henry
2022-02-08 11:05:47 +08:00
parent 252182f089
commit 46476267aa
13 changed files with 125 additions and 37 deletions

View File

@ -17,7 +17,6 @@ import (
"fmt"
"github.com/spf13/cobra"
"net/http"
"strings"
)
var (
@ -43,7 +42,6 @@ func run() {
// 载入配置信息
utils.LoadConfig(configFile, config.SettingInfo, func(i interface{}) {
obj := i.(*config.Setting)
obj.Upload.Exts = strings.Split(obj.Upload.Ext, ",")
logger.NewLogger().Init(&logger.Option{File: obj.Log.File, LeastDay: obj.Log.LeastDay, Level: obj.Log.Level, IsStdout: false}).Load()
})
// 载入数据引擎配置