感谢zou2699 指出拼写错误 CreateAuthorityPatams --> CreateAuthorityParams

This commit is contained in:
pixel
2019-12-20 11:37:43 +08:00
parent 403a18a1ce
commit 91dfec0427
6 changed files with 114 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ func InitLog() *logrus.Logger {
if ok, _ := tools.PathExists("./log"); !ok {
// Directory not exist
fmt.Println("Create log.")
os.Mkdir("log", os.ModePerm)
_ = os.Mkdir("log", os.ModePerm)
}
apiLogPath := "./log/api.log"
logWriter, err := rotatelogs.New(