diff --git a/lib/email.js b/lib/email.js index 8634eede0b965ffd995b10afc022589c12ab0f36..4bb0c50d650bb74a5a8b4d47ac047c14ec71d52c 100644 --- a/lib/email.js +++ b/lib/email.js @@ -64,9 +64,8 @@ function doSend(landing_page, email, site, secret, langContext) { subject: subject, body: template({ link: url, site: site, gettext: _, format: format }) }, function(err, success){ - if(!success) { - logger.error("error sending email: " + err); - logger.error("verification URL: " + url); + if (!success) { + logger.error("error sending email to: " + email + " - " + err); } }); };