Skip to content

fix: replace console.* calls with structured logging service#836

Merged
RUKAYAT-CODER merged 11 commits into
rinafcode:mainfrom
boalambo:fix/sync-engine-conflict3
Jul 1, 2026
Merged

fix: replace console.* calls with structured logging service#836
RUKAYAT-CODER merged 11 commits into
rinafcode:mainfrom
boalambo:fix/sync-engine-conflict3

Conversation

@boalambo

Copy link
Copy Markdown
Contributor

Closes #753

Changes

  • Replaced all console.log/error/warn calls in 25 production files with structured logger using createLogger() from src/lib/logging/index.ts
  • Added ESLint rule no-console: error to .eslintrc.json to prevent regression
  • Updated .eslintignore to allow console.* in test and script files
  • Resolved merge conflicts with upstream/main

Acceptance Criteria Met

  • Zero console.* calls remain in src/ production code
  • ESLint rule prevents future regressions

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@boalambo 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! 🚀

Learn more about application limits

@boalambo

Copy link
Copy Markdown
Contributor Author

Type-check errors are now resolved. The remaining test failures
(openScanner, ThemeContext, canvas) are pre-existing issues unrelated
to this PR's scope. Happy to address them separately if needed.

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Great job so far

There’s just one blocker — workflow. Could you take a look and resolve it?

Happy to review again once that’s done.

@boalambo

Copy link
Copy Markdown
Contributor Author

Great job so far

There’s just one blocker — workflow. Could you take a look and resolve it?

Happy to review again once that’s done.

blocker is resolved and ready for re-review.

boalambo and others added 3 commits July 1, 2026 07:51
Fixes duplicate/dangling code left behind by prior merges with main:
- CommandPalette.tsx: removed orphaned placeholder onCreate prop
- DashboardGrid.tsx: removed orphaned useEffect fragment calling undefined saveWidgetLayout
- useDashboardWidgets.tsx: removed duplicate React import

Root cause of the recurring Type Check CI failures.
…lure

AsyncLocalStorage from node:async_hooks was statically imported,
causing webpack to fail bundling it into client components (e.g.
error.tsx) that import the logger. Now dynamically required and
guarded behind a server-only check so it's excluded from client bundles.
@boalambo

boalambo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Please check for approval again

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project. Your other task that you removed the CI, Kindly add it here so that i can close both together.
i.e close issue number.
Am waiting

@boalambo

boalambo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Closes #706

@boalambo

boalambo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for contributing to the project. Your other task that you removed the CI, Kindly add it here so that i can close both together. i.e close issue number. Am waiting

Thank for always supporting and the guidelines. So much appreciated. I finally fix it all 💃

@RUKAYAT-CODER RUKAYAT-CODER merged commit 62543b3 into rinafcode:main Jul 1, 2026
4 checks passed
@boalambo

boalambo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Looking forward to working with you in the next wave ma.

boalambo added a commit to boalambo/teachLink_web that referenced this pull request Jul 1, 2026
Resolves conflicts in:
- src/app/api/auth/login/route.ts
- src/app/api/performance/vitals/route.ts
- src/app/components/dashboard/DashboardGrid.tsx
- src/app/hooks/useDashboardWidgets.tsx
- src/components/CommandPalette.tsx
- src/store/synchronizationEngine.ts

All conflicts resolved by accepting upstream/main's fixes from rinafcode#836
(orphaned merge-conflict artifacts) plus reconciling missing imports.
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.

[Tech-debt] 13 source files use console.log/error/warn instead of the structured logging service

2 participants