make use of micro/go-log

This commit is contained in:
Asim Aslam
2017-05-11 20:43:42 +01:00
parent 39fb03fba6
commit bab586b71e
6 changed files with 31 additions and 29 deletions

View File

@@ -1,10 +1,10 @@
package cache
import (
"log"
"sync"
"time"
"github.com/micro/go-log"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/selector"
)
@@ -241,14 +241,14 @@ func (c *cacheSelector) run() {
// create new watcher
w, err := c.so.Registry.Watch()
if err != nil {
log.Println(err)
log.Log(err)
time.Sleep(time.Second)
continue
}
// watch for events
if err := c.watch(w); err != nil {
log.Println(err)
log.Log(err)
continue
}
}