quiet debugging

This commit is contained in:
Jeff Carr 2025-04-23 02:41:05 -05:00
parent c9ef4f0b82
commit e6fb7352ae
2 changed files with 14 additions and 9 deletions

16
add.go
View File

@ -62,13 +62,15 @@ func (c *OldCluster) FindDropletByName(name string) *Droplet {
} }
func (c *OldCluster) FindDropletByUuid(id string) *Droplet { func (c *OldCluster) FindDropletByUuid(id string) *Droplet {
log.Info("START FIND", id) /*
loop := c.d.All() // get the list of droplets log.Info("START FIND", id)
for loop.Scan() { loop := c.d.All() // get the list of droplets
d := loop.Next() for loop.Scan() {
log.Info("droplet:", d.Hostname, d.Uuid) d := loop.Next()
} log.Info("droplet:", d.Hostname, d.Uuid)
log.Info("END FIND", id) }
log.Info("END FIND", id)
*/
return c.d.FindByUuid(id) return c.d.FindByUuid(id)
} }

View File

@ -99,7 +99,7 @@ func (c *OldCluster) ConfigLoad() error {
return err return err
} }
} else { } else {
fmt.Println("ERROR HERE IN Hypervisors") log.Warn("ERROR HERE IN Hypervisors")
return err return err
} }
@ -108,8 +108,11 @@ func (c *OldCluster) ConfigLoad() error {
// does it not stay allocated after this function ends? // does it not stay allocated after this function ends?
c.e = new(Events) c.e = new(Events)
} }
if err := c.e.loadEvents(); err != nil { if err := c.e.loadEvents(); err != nil {
return err // ignore events.pb since these should be sent elsewhere
log.Warn("Events failed to load, ignoring:", err)
return nil
} }
return nil return nil
} }