Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughThe PR removes custom logMethod augmentation from Pino configuration and simplifies Logger class method signatures. Nine logging methods (log, debug, info, startup, success, warn, error, method, subscription) transition from multiple overloads handling variadic arguments to single signatures accepting object | string parameters, eliminating special multi-argument handling while preserving functionality. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #38296 +/- ##
===========================================
- Coverage 70.79% 70.77% -0.02%
===========================================
Files 3158 3158
Lines 109355 109355
Branches 19680 19650 -30
===========================================
- Hits 77414 77400 -14
- Misses 29912 29922 +10
- Partials 2029 2033 +4
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)
Issue(s)
https://rocketchat.atlassian.net/browse/CORE-1715
Steps to test or reproduce
Further comments
The following signatures of logging are now not supported
(
.erroris the example, but it applies to all other log methods)The following signatures are not recommended
Althought there's no way to prevent that with types, please prefer the usage of the object format for those logs
When logging errors, remember that the only property that would be properly stringified as an error is
err. If you log an error with another name, likeerror, it would work, but won't print as you would expectSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.