原始data log去除文件prefix
This commit is contained in:
parent
4c8d4d0a48
commit
99bfea5d5a
|
@ -27,7 +27,8 @@ type Device struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type baseMessage struct{
|
type baseMessage struct{
|
||||||
|
Ip string `json:"ip"`
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//处理通过tcp发送过来的数据
|
//处理通过tcp发送过来的数据
|
||||||
|
@ -143,7 +144,7 @@ func record_log(data_buf []byte){
|
||||||
}
|
}
|
||||||
record := log.New(f,"",log.Llongfile)
|
record := log.New(f,"",log.Llongfile)
|
||||||
//debugLog.SetPrefix("[Debug]")
|
//debugLog.SetPrefix("[Debug]")
|
||||||
record.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
|
record.SetFlags(log.Ldate | log.Ltime)
|
||||||
record.Println(data_buf)
|
record.Println(data_buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue