How To Prevent Email Logging


#1

The server logging of Email.send is cluttering up my logs when running server side tests. Is there some way to prevent Email.send from logging when there is not a MAIL_URL set?


#2

You could monkey patch the function:

if (Meteor.isDevelopment) {
     Email.send = function () {
          // ... do nothing
     }
}