refactor: replace console calls with structured logger - #1421
OLAMIGHTY010 wants to merge 6 commits into
Conversation
|
@OLAMIGHTY010 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Thanks for the contribution! We reviewed this PR while merging the open queue and couldn't merge it yet. Here's what needs fixing:
Once these are fixed, push to this branch and we'll take another look. |
…update test console assertions to use logger
|
Thanks for the review! I've gone ahead and pushed fixes for all the issues you pointed out: Malformed imports: Fixed the syntax error in src/middleware/envelopeValidator.ts where an import was accidentally placed inside a comment/braces. |
|
All review issues have been addressed — malformed imports fixed, logger properly imported, and tests updated to assert on structured logger output rather than console calls. Kindly approve the workflow run so CI can verify. 🙏 |
Closes #1348. Replaced console.* calls with logger calls carrying context objects. Enabled the no-console ESLint rule for src/ (excluding scripts/, logger.ts, and tests). Ensured log entries will now include requestId where available via the logger.