From c7396f58cd4fbc612c3c24e6c26cdf2b738f98b6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 17 Nov 2014 11:37:01 -0500 Subject: [PATCH] verbose logging for email --- src/user/jobs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user/jobs.js b/src/user/jobs.js index ec5561db2d..e54d7543aa 100644 --- a/src/user/jobs.js +++ b/src/user/jobs.js @@ -15,7 +15,7 @@ var db = require('../database'), module.exports = function(User) { User.startJobs = function() { - winston.info('[user.startJobs] Registering User Jobs'); + winston.verbose('[user.startJobs] Registering User Jobs'); new cronJob('0 0 17 * * *', function() { User.sendDailyDigests(); @@ -25,7 +25,7 @@ module.exports = function(User) { User.sendDailyDigests = function() { var digestsDisabled = meta.config.disableEmailSubscriptions !== undefined && parseInt(meta.config.disableEmailSubscriptions, 10) === 1; if (digestsDisabled) { - return winston.log('[user/jobs] Did not send daily digests because subscription system is disabled.'); + return winston.verbose('[user/jobs] Did not send daily digests because subscription system is disabled.'); } topics.getLatestTopics(0, 0, 9, 'day', function(err, data) { @@ -55,7 +55,7 @@ module.exports = function(User) { if (err) { winston.error('[user/jobs] Could not send daily digests: ' + err.message); } else { - winston.info('[user/jobs] Daily Digests sent!'); + winston.verbose('[user/jobs] Daily Digests sent!'); } }); });