Less noisy logging.

This commit is contained in:
Tobias Lidskog 2017-09-22 18:34:03 +02:00 committed by GitHub
parent c976b69095
commit bdc0947861
6 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ module.exports = {
reject(e);
} else {
res.setEncoding('utf8');
log.info('Sent annotation to Graphite');
log.debug('Sent annotation to Graphite');
resolve();
}
});

View File

@ -11,8 +11,8 @@ class GraphiteSender {
}
send(data) {
log.info('Send data to Graphite %s:%s', this.host, this.port);
log.debug('Sending ' + data);
log.debug('Send data to Graphite %s:%s', this.host, this.port);
log.verbose('Sending ' + data);
return new Promise((resolve, reject) => {
let socket = net.connect(this.port, this.host, () => {
socket.write(data);

View File

@ -34,7 +34,7 @@ class HTMLBuilder {
const name = this.context.name;
const timestamp = this.timestamp;
const nTestedPages = Object.keys(dataCollection.urlPages).length;
log.info('Render HTML for %s page(s) ', nTestedPages);
log.debug('Render HTML for %s page(s) ', nTestedPages);
const errors = dataCollection.getErrorPages();
if (Object.keys(errors).length > 0) {

View File

@ -19,7 +19,7 @@ const defaultConfig = {
module.exports = {
open(context, options) {
throwIfMissing(options.influxdb, ['host', 'database'], 'influxdb');
log.info(
log.debug(
'Setup InfluxDB host %s and database %s',
options.influxdb.host,
options.influxdb.database

View File

@ -63,7 +63,7 @@ module.exports = {
reject(e);
} else {
res.setEncoding('utf-8');
log.info('Sent annotation to InfluxDB');
log.debug('Sent annotation to InfluxDB');
resolve();
}
});

View File

@ -75,7 +75,7 @@ module.exports = {
fs
.removeAsync(baseDir)
.then(() => {
log.info(`Removed local files and directory ${baseDir}`);
log.debug(`Removed local files and directory ${baseDir}`);
resolve();
})
.catch(e => reject(e));