增加重连
This commit is contained in:
parent
90a4ad85d0
commit
2a93e1cc38
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
func Log(c *gin.Context, name string, msg ...interface{}) {
|
||||
_, file, line, _ := runtime.Caller(1)
|
||||
timeLayout := "2006-01-01 03:04:05" //转化所需模板
|
||||
var datetime = time.Unix(time.Now().Unix(), 0).Format(timeLayout)
|
||||
var datetime = time.Now().Format(time.DateTime)
|
||||
fmt.Println(name, msg, file, line, datetime)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue