remove use of glog

This commit is contained in:
Asim
2016-03-14 11:01:10 +00:00
parent c0b25e7a65
commit d1eae8fabe
12 changed files with 46 additions and 85 deletions

View File

@@ -2,9 +2,9 @@ package main
import (
"fmt"
"log"
"time"
log "github.com/golang/glog"
"github.com/micro/go-micro/broker"
"github.com/micro/go-micro/cmd"
// To enable rabbitmq plugin uncomment
@@ -26,7 +26,7 @@ func pub() {
Body: []byte(fmt.Sprintf("%d: %s", i, time.Now().String())),
}
if err := broker.Publish(topic, msg); err != nil {
log.Errorf("[pub] failed: %v", err)
log.Printf("[pub] failed: %v", err)
} else {
fmt.Println("[pub] pubbed message:", string(msg.Body))
}