How To Prevent Email Logging

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?

You could monkey patch the function:

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