quiet some output

This commit is contained in:
Jeff Carr 2025-03-06 07:50:21 -06:00
parent b963653bb6
commit b587843836
1 changed files with 4 additions and 4 deletions

View File

@ -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)
}