Skip to content
Snippets Groups Projects
Commit 60c608ab authored by pantianying's avatar pantianying
Browse files

check log

parent 3ceab17e
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -214,13 +214,13 @@ func (dir *registryDirectory) cacheInvoker(url *common.URL) protocol.Invoker { ...@@ -214,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)
......
...@@ -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