moar logs
This commit is contained in:
parent
6fa652c2e4
commit
86bdf2cfdf
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue