Skip to content
Snippets Groups Projects
Unverified Commit ff8ea17e authored by Ming Deng's avatar Ming Deng Committed by GitHub
Browse files

Merge pull request #374 from pantianying/ftr_log

change log
parents dd1a3c24 6573221d
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ func (p *Proxy) Implement(v common.RPCService) { ...@@ -142,7 +142,7 @@ func (p *Proxy) Implement(v common.RPCService) {
result := p.invoke.Invoke(invCtx, inv) result := p.invoke.Invoke(invCtx, inv)
err = result.Error() err = result.Error()
logger.Infof("[makeDubboCallProxy] result: %v, err: %v", result.Result(), err) logger.Debugf("[makeDubboCallProxy] result: %v, err: %v", result.Result(), err)
if len(outs) == 1 { if len(outs) == 1 {
return []reflect.Value{reflect.ValueOf(&err).Elem()} return []reflect.Value{reflect.ValueOf(&err).Elem()}
} }
......
...@@ -128,7 +128,7 @@ func (di *DubboInvoker) Destroy() { ...@@ -128,7 +128,7 @@ func (di *DubboInvoker) Destroy() {
for { for {
if di.reqNum == 0 { if di.reqNum == 0 {
di.reqNum = -1 di.reqNum = -1
logger.Info("dubboInvoker is destroyed,url:{%s}", di.GetUrl().Key()) logger.Infof("dubboInvoker is destroyed,url:{%s}", di.GetUrl().Key())
di.BaseInvoker.Destroy() di.BaseInvoker.Destroy()
if di.client != nil { if di.client != nil {
di.client.Close() di.client.Close()
......
...@@ -78,7 +78,7 @@ func newGettyRPCClientConn(pool *gettyRPCClientPool, protocol, addr string) (*ge ...@@ -78,7 +78,7 @@ func newGettyRPCClientConn(pool *gettyRPCClientPool, protocol, addr string) (*ge
} }
time.Sleep(1e6) time.Sleep(1e6)
} }
logger.Infof("client init ok") logger.Debug("client init ok")
c.updateActive(time.Now().Unix()) c.updateActive(time.Now().Unix())
return c, nil return c, nil
......
...@@ -128,10 +128,9 @@ func (dir *registryDirectory) refreshInvokers(res *registry.ServiceEvent) { ...@@ -128,10 +128,9 @@ func (dir *registryDirectory) refreshInvokers(res *registry.ServiceEvent) {
} }
switch res.Action { switch res.Action {
case remoting.EventTypeAdd, remoting.EventTypeUpdate: case remoting.EventTypeAdd, remoting.EventTypeUpdate:
//dir.cacheService.EventTypeAdd(res.Path, dir.serviceTTL) logger.Infof("selector add service url{%s}", res.Service)
oldInvoker = dir.cacheInvoker(url) oldInvoker = dir.cacheInvoker(url)
case remoting.EventTypeDel: case remoting.EventTypeDel:
//dir.cacheService.EventTypeDel(res.Path, dir.serviceTTL)
oldInvoker = dir.uncacheInvoker(url) oldInvoker = dir.uncacheInvoker(url)
logger.Infof("selector delete service url{%s}", res.Service) logger.Infof("selector delete service url{%s}", res.Service)
default: default:
...@@ -215,13 +214,13 @@ func (dir *registryDirectory) cacheInvoker(url *common.URL) protocol.Invoker { ...@@ -215,13 +214,13 @@ func (dir *registryDirectory) cacheInvoker(url *common.URL) protocol.Invoker {
newUrl := common.MergeUrl(url, referenceUrl) newUrl := common.MergeUrl(url, referenceUrl)
dir.overrideUrl(newUrl) dir.overrideUrl(newUrl)
if cacheInvoker, ok := dir.cacheInvokersMap.Load(newUrl.Key()); !ok { if cacheInvoker, ok := dir.cacheInvokersMap.Load(newUrl.Key()); !ok {
logger.Infof("service will be added in cache invokers: invokers url is %s!", newUrl) logger.Debugf("service will be added in cache invokers: invokers url is %s!", newUrl)
newInvoker := extension.GetProtocol(protocolwrapper.FILTER).Refer(*newUrl) newInvoker := extension.GetProtocol(protocolwrapper.FILTER).Refer(*newUrl)
if newInvoker != nil { if newInvoker != nil {
dir.cacheInvokersMap.Store(newUrl.Key(), newInvoker) dir.cacheInvokersMap.Store(newUrl.Key(), newInvoker)
} }
} else { } else {
logger.Infof("service will be updated in cache invokers: new invoker url is %s, old invoker url is %s", newUrl, cacheInvoker.(protocol.Invoker).GetUrl()) logger.Debugf("service will be updated in cache invokers: new invoker url is %s, old invoker url is %s", newUrl, cacheInvoker.(protocol.Invoker).GetUrl())
newInvoker := extension.GetProtocol(protocolwrapper.FILTER).Refer(*newUrl) newInvoker := extension.GetProtocol(protocolwrapper.FILTER).Refer(*newUrl)
if newInvoker != nil { if newInvoker != nil {
dir.cacheInvokersMap.Store(newUrl.Key(), newInvoker) dir.cacheInvokersMap.Store(newUrl.Key(), newInvoker)
......
...@@ -56,7 +56,7 @@ func (l *RegistryDataListener) DataChange(eventType remoting.Event) bool { ...@@ -56,7 +56,7 @@ func (l *RegistryDataListener) DataChange(eventType remoting.Event) bool {
// Intercept the last bit // Intercept the last bit
index := strings.Index(eventType.Path, "/providers/") index := strings.Index(eventType.Path, "/providers/")
if index == -1 { if index == -1 {
logger.Warn("Listen with no url, event.path={%v}", eventType.Path) logger.Warnf("Listen with no url, event.path={%v}", eventType.Path)
return false return false
} }
url := eventType.Path[index+len("/providers/"):] url := eventType.Path[index+len("/providers/"):]
......
...@@ -412,7 +412,7 @@ func (z *ZookeeperClient) Create(basePath string) error { ...@@ -412,7 +412,7 @@ func (z *ZookeeperClient) Create(basePath string) error {
if err != nil { if err != nil {
if err == zk.ErrNodeExists { if err == zk.ErrNodeExists {
logger.Infof("zk.create(\"%s\") exists\n", tmpPath) logger.Debugf("zk.create(\"%s\") exists\n", tmpPath)
} else { } else {
logger.Errorf("zk.create(\"%s\") error(%v)\n", tmpPath, perrors.WithStack(err)) logger.Errorf("zk.create(\"%s\") error(%v)\n", tmpPath, perrors.WithStack(err))
return perrors.WithMessagef(err, "zk.Create(path:%s)", basePath) return perrors.WithMessagef(err, "zk.Create(path:%s)", basePath)
......
...@@ -245,7 +245,7 @@ func (l *ZkEventListener) listenDirEvent(zkPath string, listener remoting.DataLi ...@@ -245,7 +245,7 @@ func (l *ZkEventListener) listenDirEvent(zkPath string, listener remoting.DataLi
if err != nil { if err != nil {
logger.Errorf("Get new node path {%v} 's content error,message is {%v}", dubboPath, perrors.WithStack(err)) logger.Errorf("Get new node path {%v} 's content error,message is {%v}", dubboPath, perrors.WithStack(err))
} }
logger.Infof("Get children!{%s}", dubboPath) logger.Debugf("Get children!{%s}", dubboPath)
if !listener.DataChange(remoting.Event{Path: dubboPath, Action: remoting.EventTypeAdd, Content: string(content)}) { if !listener.DataChange(remoting.Event{Path: dubboPath, Action: remoting.EventTypeAdd, Content: string(content)}) {
continue continue
} }
......
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