data_sender

This commit is contained in:
insanity@loafle.com 2017-04-26 18:08:10 +09:00
parent 048a8e70ca
commit 625bfc3a89

View File

@ -61,7 +61,6 @@ func (ds *DataSender) check() {
for _, item := range items { for _, item := range items {
collectedData := item.Value.(*Data) collectedData := item.Value.(*Data)
collectedData.AgentId = agentIdentifier() collectedData.AgentId = agentIdentifier()
log.Println("collectedData : ", collectedData)
result = append(result, collectedData) result = append(result, collectedData)
} }
@ -102,7 +101,6 @@ func saveFailedData(datas []*Data) {
for _, data := range datas { for _, data := range datas {
bytes, err := json.Marshal(&data) bytes, err := json.Marshal(&data)
log.Println("write : ", string(bytes))
if err != nil { if err != nil {
log.Println(err) log.Println(err)
} }