Skip to content

fix: replace console.log/error with NestJS Logger (#893) - #996

Merged
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
abdoolyaro:fix/893-nestjs-logger
Jul 29, 2026
Merged

fix: replace console.log/error with NestJS Logger (#893)#996
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
abdoolyaro:fix/893-nestjs-logger

Conversation

@abdoolyaro

Copy link
Copy Markdown
Contributor
  • Add class-level Logger instances (RateLimitService, NotificationsService, EmailVerificationService, UsersControllerExample) using this.logger
  • Add module-level Logger instances for standalone functions (swagger.config.ts, validate-env.ts)
  • Set no-console ESLint rule to error

Closes #893

- Add class-level Logger instances (RateLimitService, NotificationsService,
  EmailVerificationService, UsersControllerExample) using this.logger
- Add module-level Logger instances for standalone functions
  (swagger.config.ts, validate-env.ts)
- Set no-console ESLint rule to error

Closes MettaChain#893
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@abdoolyaro 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

abdoolyaro and others added 2 commits July 29, 2026 12:37
…ports

- validate-env.ts: the merge from main kept the WEAK/JWT_SECRET_VARS/
  MIN_JWT_SECRET_LENGTH declarations from MettaChain#892 but dropped the loop and
  error-reporting logic that used them, so weak JWT secrets were no longer
  actually being checked at startup. Restored that logic on top of the
  Logger-based error reporting from MettaChain#893.
- examples.controller.ts: remove unused UseGuards and Query imports,
  now failing under --max-warnings=0.
@nanaf6203-bit
nanaf6203-bit merged commit e26e0da into MettaChain:main Jul 29, 2026
7 checks passed
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.

Replace console.log and console.error with NestJS Logger across the codebase

2 participants