Cron log enable/disable
This commit is contained in:
parent
61339f4eb2
commit
2c7dc8e737
2 changed files with 6 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@
|
|||
},
|
||||
"proxies_count": 0,
|
||||
"ironPassword": "SomePasswordAlLeast32LongYouKnowHowToCount",
|
||||
"cron": {
|
||||
"debug": false
|
||||
},
|
||||
"twitter": {
|
||||
"es": {
|
||||
"enabled": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue