OpenAtomFoundation / xupercore

The kernel of xuperchain.
Apache License 2.0
61 stars 47 forks source link

问题:日志中出现大量warn级别"dial to self attempted"的优化 #298

Closed wangchao0222 closed 2 years ago

wangchao0222 commented 2 years ago

Description

代码中关于peerids的获取是经过kaddht句柄从底层libp2p库获取到然后经过multi过滤器过滤,此处暂未处理获取peerids的流程,仅当上述错误出现时由warn级别改为info日志级别

Fixes # (issue)

【日志】【优化】tdpos共识,日志频繁刷跟自己建立p2p连接的日志,需优化

Type of change

Please delete options that are not relevant.

Brief of your solution

仅当"dial to self attempted"错误出现时由warn级别改为info日志级别

How Has This Been Tested?

部署运行,查看xchain.log.wf日志中是否出现warn级别的"dial to self attempted"日志