chore(federation): fix error logs#37706
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
WalkthroughThis PR standardizes error logging patterns across the federation-matrix package by converting logger.error calls from message-first to error-first argument ordering and replacing plain string logs with structured log objects containing contextual identifiers and message fields. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10–15 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
5ffdd08 to
4301ee0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #37706 +/- ##
===========================================
- Coverage 67.79% 67.78% -0.02%
===========================================
Files 3449 3449
Lines 114030 114030
Branches 20963 20963
===========================================
- Hits 77305 77292 -13
- Misses 34606 34627 +21
+ Partials 2119 2111 -8
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
We were completely missing the errors the way we were logging errors.
See this code as an example of why the changes are needed:
This produces the following production logs:
as you can see this is what we were seeing:
"msg":"wrong error: {}"}Issue(s)
FB-133
Steps to test or reproduce
Further comments
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.