mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-20 17:57:54 +00:00
修改拼写错误,删除注释代码
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user