增加重连

This commit is contained in:
qiyunfanbo126.com 2025-01-22 14:34:18 +08:00
parent 90a4ad85d0
commit 2a93e1cc38
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}