原始data log去除文件prefix

This commit is contained in:
fish 2019-08-12 17:44:35 +08:00
parent 4c8d4d0a48
commit 99bfea5d5a
1 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,8 @@ type Device struct {
}
type baseMessage struct{
Ip string `json:"ip"`
}
//处理通过tcp发送过来的数据
@ -143,7 +144,7 @@ func record_log(data_buf []byte){
}
record := log.New(f,"",log.Llongfile)
//debugLog.SetPrefix("[Debug]")
record.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
record.SetFlags(log.Ldate | log.Ltime)
record.Println(data_buf)
}