Add logging for script loading
This commit is contained in:
parent
8ce1c9cd1f
commit
44ff193733
9
index.js
9
index.js
|
@ -1,11 +1,11 @@
|
|||
var MemCache = require('mem-cache')
|
||||
var SlackGitHubCacheBuilder = require('./lib/retrieve-slack-github-users')
|
||||
let MemCache = require('mem-cache')
|
||||
let SlackGitHubCacheBuilder = require('./lib/retrieve-slack-github-users')
|
||||
|
||||
module.exports = async (robot) => {
|
||||
console.log('Yay, the app was loaded!')
|
||||
|
||||
var slackGitHubCache = new MemCache({ timeoutDisabled: true })
|
||||
var slackCachePromise = SlackGitHubCacheBuilder.build(robot, slackGitHubCache)
|
||||
let slackGitHubCache = new MemCache({ timeoutDisabled: true })
|
||||
let slackCachePromise = SlackGitHubCacheBuilder.build(robot, slackGitHubCache)
|
||||
|
||||
require('./bot_scripts/assign-new-pr-to-review')(robot)
|
||||
require('./bot_scripts/assign-approved-pr-to-test')(robot)
|
||||
|
@ -13,6 +13,7 @@ module.exports = async (robot) => {
|
|||
require('./bot_scripts/greet-new-contributor')(robot)
|
||||
|
||||
await slackCachePromise
|
||||
robot.log.info('Slack username cache populated, loading remainder of scripts')
|
||||
|
||||
// Add scripts which require using the Slack/GitHub cache after this comment
|
||||
|
||||
|
|
Loading…
Reference in New Issue