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 == "" { 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)
} }