Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid logging issues if we still could fetch keys #422

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

S7evinK
Copy link
Contributor

@S7evinK S7evinK commented Nov 10, 2023

To avoid confusion about e.g. being unable to fetch keys from matrix.org.

Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (58af9a2) 58.91% compared to head (ed4e8a8) 58.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #422      +/-   ##
==========================================
+ Coverage   58.91%   58.99%   +0.07%     
==========================================
  Files          51       51              
  Lines        7108     7113       +5     
==========================================
+ Hits         4188     4196       +8     
+ Misses       2531     2528       -3     
  Partials      389      389              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

logger.WithFields(logrus.Fields{
"servers": requestedServers,
"fetchers": len(k.KeyFetchers),
}).Warn("failed to fetch keys for some servers")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without stating which servers this isn't very helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requestedServers is the list of the servers we failed to fetch keys for.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that wasn't clear. LGTM then!

@S7evinK S7evinK merged commit 2beadf1 into main Nov 22, 2023
7 checks passed
@S7evinK S7evinK deleted the s7evink/server-keys-logging branch November 22, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants