diff --git a/src/apphealthmonitor.js b/src/apphealthmonitor.js index 13d0ea505..78788db36 100644 --- a/src/apphealthmonitor.js +++ b/src/apphealthmonitor.js @@ -14,7 +14,7 @@ var appdb = require('./appdb.js'), util = require('util'); exports = module.exports = { - run: run + run }; const HEALTHCHECK_INTERVAL = 10 * 1000; // every 10 seconds. this needs to be small since the UI makes only healthy apps clickable diff --git a/src/cron.js b/src/cron.js index fd471d81f..009cf1f0e 100644 --- a/src/cron.js +++ b/src/cron.js @@ -64,6 +64,8 @@ var NOOP_CALLBACK = function (error) { if (error) debug(error); }; function startJobs(callback) { assert.strictEqual(typeof callback, 'function'); + debug('startJobs: starting cron jobs'); + const randomTick = Math.floor(60*Math.random()); gJobs.systemChecks = new CronJob({ cronTime: '00 30 2 * * *', // once a day. if you change this interval, change the notification messages with correct duration diff --git a/src/reverseproxy.js b/src/reverseproxy.js index 3aa1a4bae..b952ffe19 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -676,6 +676,8 @@ function writeDefaultConfig(options, callback) { const nginxConf = ejs.render(NGINX_APPCONFIG_EJS, data); const nginxConfigFilename = path.join(paths.NGINX_APPCONFIG_DIR, constants.NGINX_DEFAULT_CONFIG_FILE_NAME); + debug(`writeDefaultConfig: writing configs for endpoint "${data.endpoint}"`); + if (!safe.fs.writeFileSync(nginxConfigFilename, nginxConf)) return callback(new BoxError(BoxError.FS_ERROR, safe.error)); reload(callback);