diff --git a/lib/plugins/influxdb/index.js b/lib/plugins/influxdb/index.js index 91d62660f..9d62b0a06 100644 --- a/lib/plugins/influxdb/index.js +++ b/lib/plugins/influxdb/index.js @@ -4,6 +4,7 @@ let path = require('path'), throwIfMissing = require('../../support/util').throwIfMissing, isEmpty = require('../../support/util').isEmpty, filterRegistry = require('../../support/filterRegistry'), + log = require('intel'), Sender = require('./sender'), DataGenerator = require('./data-generator'); @@ -13,6 +14,7 @@ module.exports = { }, open(context, options) { throwIfMissing(options.influxdb, ['host', 'database'], 'influxdb'); + log.info('Setup InfluxDB host %s and database %s', options.influxdb.host, options.influxdb.database); const opts = options.influxdb; this.sender = new Sender(opts); diff --git a/lib/plugins/slack/index.js b/lib/plugins/slack/index.js index b3d14a1a8..0eb235b96 100644 --- a/lib/plugins/slack/index.js +++ b/lib/plugins/slack/index.js @@ -4,6 +4,7 @@ let throwIfMissing = require('../../support/util').throwIfMissing, Promise = require('bluebird'), path = require('path'), util = require('util'), + log = require('intel'), merge = require('lodash.merge'), Slack = require('node-slack'); @@ -31,6 +32,8 @@ module.exports = { if (errors.length > 0) text += util.format(' (%d) errors', errors.length); + log.debug('Sending message to Slack channel %s and username %s', options.channel, options.userName); + return slack.sendAsync({ text: text, channel: options.channel,