chore: log node status and latencies in debug level#880
Open
iceBear67 wants to merge 2 commits intodaeuniverse:mainfrom
Open
chore: log node status and latencies in debug level#880iceBear67 wants to merge 2 commits intodaeuniverse:mainfrom
iceBear67 wants to merge 2 commits intodaeuniverse:mainfrom
Conversation
Contributor
|
个人认为节点状态变更相关的日志应当是高优先级的,但的确现在过滤流量相关的日志较为困难 |
Contributor
|
+1. 对我来说(四个机场的节点混合选择),"节点测速日志以及存活状态"就是"有价值的信息"。 可以自己写简单的脚本来监听并分析log,比如dns统计等。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
有的时候我想在 journal 里面看每个连接的分流情况,但是大鹅一直在刷节点测速日志以及存活状态,使得我基本上看不到有价值的信息,因此我将相关测速日志的 log level 改为了 debug。
我想可能有其他人也遇到过类似的问题,因此提交此 PR.
没有在项目里见到 CONTRIBUTING.md, 因此如果有做的不对的地方烦请指出, 谢谢!
Checklist
It's not a new version so I didn't change that.
It's integrated into this PR. if this is inappropirate, I'll submit another PR later.
Full Changelogs
alive_dialer_set.go中打印延迟及节点列表时使用的 log level.Issue Reference
I haven't seen any.
Test Result
It works on my machine.