OpenAtomFoundation / xupercore

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

日志中出现大量warn级别"dial to self attempted"的优化 #297

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"日志

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


wangchao86 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

codecov-commenter commented 2 years ago

Codecov Report

Merging #297 (a12b32f) into master (a47fc2f) will decrease coverage by 0.01%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #297      +/-   ##
==========================================
- Coverage   46.45%   46.44%   -0.02%     
==========================================
  Files         136      136              
  Lines       12174    12177       +3     
==========================================
  Hits         5655     5655              
- Misses       5349     5352       +3     
  Partials     1170     1170              
Impacted Files Coverage Δ
bcs/network/p2pv2/stream_pool.go 44.26% <0.00%> (-2.29%) :arrow_down:
bcs/network/p2pv1/conn.go 55.10% <0.00%> (-6.13%) :arrow_down:
bcs/consensus/xpoa/xpoa.go 54.21% <0.00%> (-1.06%) :arrow_down:
bcs/consensus/tdpos/schedule.go 43.57% <0.00%> (+0.91%) :arrow_up:
bcs/consensus/tdpos/tdpos.go 50.24% <0.00%> (+1.93%) :arrow_up:
bcs/consensus/tdpos/common.go 57.81% <0.00%> (+3.12%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a47fc2f...a12b32f. Read the comment docs.