增加log文件存取,以及增加LOG函数
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ func (this *Context) Display(statu int, data interface{}) {
|
||||
|
||||
tpe := this.Config.GetMap("error").GetString(ObjToStr(statu))
|
||||
if tpe == "" {
|
||||
this.SetError(errors.New("找不到对应的错误码"))
|
||||
logFmt(errors.New("找不到对应的错误码"), 2, LOG_WARN)
|
||||
}
|
||||
|
||||
temp["type"] = tpe
|
||||
|
||||
Reference in New Issue
Block a user