Skip to content

fix(mailer): use logger.log instead of debug for transporter ready#1249

Closed
shishir-subedii wants to merge 1 commit intonest-modules:mainfrom
shishir-subedii:fix/logger-error-message
Closed

fix(mailer): use logger.log instead of debug for transporter ready#1249
shishir-subedii wants to merge 1 commit intonest-modules:mainfrom
shishir-subedii:fix/logger-error-message

Conversation

@shishir-subedii
Copy link
Copy Markdown

Summary

Currently, when the mail transporter is successfully verified, the message
Transporter is ready is logged with logger.debug.

This means developers only see this confirmation when debug-level logging
is enabled. However, the transporter being ready is an important success
state that should be visible under standard logging.

Change

  • Replaced this.mailerLogger.debug with this.mailerLogger.log for the
    "Transporter is ready" message.

Reasoning

  • Improves visibility: Developers always know when the transporter is ready.
  • Consistency: Startup success messages in NestJS typically use log().
  • No breaking change: Only affects log visibility, not functionality.

Notes

If maintainers prefer not to show this message at log level, an alternative
would be to make the log level configurable.

juandav added a commit that referenced this pull request Mar 21, 2026
- fix(service): use logger.log instead of debug for transporter ready message (#1239, #1248, #1249)
- fix(service): reuse createTransporter in addTransporter for consistent verification and hooks (#1234)
- fix(liquid): initialize config with default empty object to prevent TypeError (#1232)
- fix(mjml): add optional chaining for others param to prevent crash when undefined
- fix(deps): add peerDependenciesMeta to mark template engines as optional (#1238, #1244)
- fix(deps): move tslib from devDependencies to dependencies for PnP runtime support (#1230)
- chore(deps): update devDependencies to latest compatible versions (#1242, #1250)
- docs: add Liquid adapter examples, MJML clarifications, multi-transporter docs (#1246)
- docs: add pnpm installation instructions and liquidjs to README

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
juandav added a commit that referenced this pull request Mar 21, 2026
- fix(service): use logger.log instead of debug for transporter ready message (#1239, #1248, #1249)
- fix(service): reuse createTransporter in addTransporter for consistent verification and hooks (#1234)
- fix(liquid): initialize config with default empty object to prevent TypeError (#1232)
- fix(mjml): add optional chaining for others param to prevent crash when undefined
- fix(deps): add peerDependenciesMeta to mark template engines as optional (#1238, #1244)
- fix(deps): move tslib from devDependencies to dependencies for PnP runtime support (#1230)
- chore(deps): update devDependencies to latest compatible versions (#1242, #1250)
- docs: add Liquid adapter examples, MJML clarifications, multi-transporter docs (#1246)
- docs: add pnpm installation instructions and liquidjs to README

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@juandav
Copy link
Copy Markdown
Member

juandav commented Mar 21, 2026

Superseded by branch fix/multiple-issues-and-dependency-updates which includes this fix (logger.debug → logger.log) along with other bug fixes, dependency updates, and documentation improvements. Thank you for your contribution!

@juandav juandav closed this Mar 21, 2026
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.

2 participants