Less noisy logging.
This commit is contained in:
parent
c976b69095
commit
bdc0947861
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue