quiet debugging
This commit is contained in:
parent
c9ef4f0b82
commit
e6fb7352ae
16
add.go
16
add.go
|
@ -62,13 +62,15 @@ func (c *OldCluster) FindDropletByName(name string) *Droplet {
|
|||
}
|
||||
|
||||
func (c *OldCluster) FindDropletByUuid(id string) *Droplet {
|
||||
log.Info("START FIND", id)
|
||||
loop := c.d.All() // get the list of droplets
|
||||
for loop.Scan() {
|
||||
d := loop.Next()
|
||||
log.Info("droplet:", d.Hostname, d.Uuid)
|
||||
}
|
||||
log.Info("END FIND", id)
|
||||
/*
|
||||
log.Info("START FIND", id)
|
||||
loop := c.d.All() // get the list of droplets
|
||||
for loop.Scan() {
|
||||
d := loop.Next()
|
||||
log.Info("droplet:", d.Hostname, d.Uuid)
|
||||
}
|
||||
log.Info("END FIND", id)
|
||||
*/
|
||||
return c.d.FindByUuid(id)
|
||||
}
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ func (c *OldCluster) ConfigLoad() error {
|
|||
return err
|
||||
}
|
||||
} else {
|
||||
fmt.Println("ERROR HERE IN Hypervisors")
|
||||
log.Warn("ERROR HERE IN Hypervisors")
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -108,8 +108,11 @@ func (c *OldCluster) ConfigLoad() error {
|
|||
// does it not stay allocated after this function ends?
|
||||
c.e = new(Events)
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue