quiet some output
This commit is contained in:
parent
b963653bb6
commit
b587843836
8
http.go
8
http.go
|
@ -21,22 +21,22 @@ func (m *Machine) HttpPostMachine(url string) ([]byte, error) {
|
||||||
if m.Hostname == "" {
|
if m.Hostname == "" {
|
||||||
log.Info("WTF. hostname is blank")
|
log.Info("WTF. hostname is blank")
|
||||||
} else {
|
} else {
|
||||||
log.Info("GOOD. hostname is set to", m.Hostname)
|
// log.Info("GOOD. hostname is set to", m.Hostname)
|
||||||
}
|
}
|
||||||
log.Info("GOOD2. hostname is set to", m.Hostname)
|
// log.Info("GOOD2. hostname is set to", m.Hostname)
|
||||||
msg, err := m.Marshal()
|
msg, err := m.Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("proto.Marshal() failed:", err)
|
log.Info("proto.Marshal() failed:", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Info("GOOD3. hostname is set to", m.Hostname)
|
// log.Info("GOOD3. hostname is set to", m.Hostname)
|
||||||
|
|
||||||
check := new(Machine)
|
check := new(Machine)
|
||||||
check.Unmarshal(msg)
|
check.Unmarshal(msg)
|
||||||
if check == nil {
|
if check == nil {
|
||||||
log.Info("WTF. check == nil")
|
log.Info("WTF. check == nil")
|
||||||
}
|
}
|
||||||
log.Info("good? check.hostname =", m.Hostname)
|
// log.Info("good? check.hostname =", m.Hostname)
|
||||||
return m.HttpPost(url, msg)
|
return m.HttpPost(url, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue