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

Make federator error logs more informative. #3919

Merged
merged 5 commits into from
Mar 6, 2024
Merged

Conversation

fisx
Copy link
Contributor

@fisx fisx commented Mar 4, 2024

https://wearezeta.atlassian.net/browse/WPB-6998

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Mar 4, 2024
@fisx fisx requested a review from smatting March 5, 2024 07:53
toWai (RemoteErrorResponse _ _ status body) =
federationRemoteResponseError status body
toWai (RemoteError target msg err) =
federationRemoteHTTP2Error (cs $ show (target, msg)) err
Copy link
Member

Choose a reason for hiding this comment

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

The error type contains errorData we should use that instead of stringifying everything. If we really want to stringify this, can we use something better than a tuple?

@fisx fisx requested a review from akshaymankar March 5, 2024 09:11
@fisx fisx force-pushed the fix-federator-error-logs branch from b8ae71f to 7d28958 Compare March 5, 2024 10:28
@fisx fisx merged commit 08b2540 into develop Mar 6, 2024
6 of 8 checks passed
@fisx fisx deleted the fix-federator-error-logs branch March 6, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants