Move from seelog to glog
This commit is contained in:
@@ -6,13 +6,13 @@ import (
|
||||
|
||||
"github.com/asim/go-micro/server"
|
||||
example "github.com/asim/go-micro/template/proto/example"
|
||||
log "github.com/cihub/seelog"
|
||||
log "github.com/golang/glog"
|
||||
)
|
||||
|
||||
type Example struct{}
|
||||
|
||||
func (e *Example) Call(ctx context.Context, req *example.Request, rsp *example.Response) error {
|
||||
log.Debug("Received Example.Call request")
|
||||
log.Info("Received Example.Call request")
|
||||
|
||||
rsp.Msg = proto.String(server.Id + ": Hello " + req.GetName())
|
||||
|
||||
|
@@ -1,10 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/asim/go-micro/server"
|
||||
"github.com/asim/go-micro/template/handler"
|
||||
log "github.com/golang/glog"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -24,5 +23,4 @@ func main() {
|
||||
if err := server.Run(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user