Hiding email logs when no mail url set


#1

When you send an email and process.env.MAIL_URL is not set, meteor will log the contents of the email.

If you’re using an email template, this can amount to 100s of logs per email.

Is it possible to disable this to avoid spamming the console?


#2

According to the docs the mail is sent to stdout, so you could just redirect to /dev/null.


#3

@robfallows would that involve editing the email package?


#4

I was thinking more along the lines of

meteor >/dev/null

in dev, or

node main.js >/dev/null

in production. Of course, if you’re using /dev/null for something, this isn’t a good solution!