Cron log enable/disable

This commit is contained in:
vjrj 2018-04-09 13:32:34 +02:00
parent 61339f4eb2
commit 2c7dc8e737
2 changed files with 6 additions and 2 deletions

View file

@ -10,10 +10,11 @@ import { isMailServerMaster, sendEmailsFromQueue } from '/imports/startup/server
Meteor.startup(() => {
SyncedCron.config({
// Log job run details to console
log: true
log: Meteor.settings.private.cron.debug || false,
// Use a custom logger function (defaults to Meteor's logging package)
// logger: null
// workaround to disable logging succesfully
logger: Meteor.settings.private.cron.debug ? null : () => {}
// Name of collection to use for synchronisation and logging
// collectionName: 'cronHistory',