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 == "" {
|
||||
log.Info("WTF. hostname is blank")
|
||||
} 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()
|
||||
if err != nil {
|
||||
log.Info("proto.Marshal() failed:", 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.Unmarshal(msg)
|
||||
if 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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue