lib: Misc cleanups and new log message

This commit is contained in:
James Shubin
2017-02-22 16:45:36 -05:00
parent c189278e24
commit e070a85ae0
2 changed files with 9 additions and 2 deletions

View File

@@ -398,8 +398,7 @@ func (obj *Main) Run() error {
}
if err != nil {
obj.Exit(err) // trigger exit
continue
//return // TODO: return or wait for exitchan?
continue // wait for exitchan
}
if obj.NoWatch { // extra safety for bad GAPI's
log.Printf("Main: GAPI stream should be quiet with NoWatch!") // fix the GAPI!
@@ -454,6 +453,7 @@ func (obj *Main) Run() error {
// FIXME: make sure we "UnGroup()" any semi-destructive
// changes to the resources so our efficient GraphSync
// will be able to re-use and cmp to the old graph.
log.Printf("Main: GraphSync...")
newFullGraph, err := newGraph.GraphSync(oldGraph)
if err != nil {
log.Printf("Config: Error running graph sync: %v", err)