修改拼写错误,删除注释代码

This commit is contained in:
zhangwenjian
2020-05-01 14:46:20 +08:00
parent 8faff5384f
commit 07068656a2
5 changed files with 3 additions and 19 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func InitLogger() {
case ModeProd:
file, err := os.OpenFile(viper.GetString("logger.dir")+"/api-"+time.Now().Format("2006-01-02")+".log", os.O_WRONLY|os.O_APPEND|os.O_CREATE|os.O_SYNC, 0600)
if err != nil {
log.Fatal("log init failed")
log.Fatalln("log init failed")
}
var info os.FileInfo
+1 -1
View File
@@ -33,7 +33,7 @@ func Assert(condition bool, msg string, code ...int) {
if len(code) > 0 {
statusCode = code[0]
}
panic("CustomErroe#" + strconv.Itoa(statusCode) + "#" + msg)
panic("CustomError#" + strconv.Itoa(statusCode) + "#" + msg)
}
}