Skip to content

Commit

Permalink
feat: added logs to check if secure is enable
Browse files Browse the repository at this point in the history
  • Loading branch information
Monta authored and Monta committed Nov 23, 2023
1 parent fe6c0a7 commit 670d711
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ export default class EmailPusherClass

this.logger.info("Message sent: %s", info.response);
} catch (err) {
this.logger.error({ error: `${err}` }, "Failed to send email");
this.logger.error(
{ error: `${err}`, secure: this.configuration.get<boolean>("smtp_tls", false) },
"Failed to send email",
);
}
} else {
this.logger.info("sending email via api interface.");
Expand Down

0 comments on commit 670d711

Please sign in to comment.