Skip to content
Snippets Groups Projects
Commit dc37621a authored by 高辛格's avatar 高辛格
Browse files

fmt.Println -> logger.Info

parent 1b031771
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,6 @@
package zookeeper
import (
"fmt"
"testing"
"time"
)
......@@ -28,6 +27,7 @@ import (
)
import (
"github.com/apache/dubbo-go/remoting"
"github.com/apache/dubbo-go/common/logger"
)
func initZkData(t *testing.T) (*zk.TestCluster, *ZookeeperClient, <-chan zk.Event) {
......@@ -108,7 +108,7 @@ type mockDataListener struct {
}
func (m *mockDataListener) DataChange(eventType remoting.Event) bool {
fmt.Println(eventType)
logger.Info(eventType)
m.eventList = append(m.eventList, eventType)
if eventType.Content == m.changedData {
m.client.Close()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment