metrics: disable debugs
This commit is contained in:
+2
-7
@@ -190,8 +190,6 @@ async function sendToGraphite() {
|
||||
return new Promise((resolve) => {
|
||||
const client = new net.Socket();
|
||||
client.connect(constants.GRAPHITE_PORT, '127.0.0.1', () => {
|
||||
debug('connected to graphite');
|
||||
|
||||
const now = Math.floor(Date.now() / 1000);
|
||||
|
||||
for (const metric of graphiteMetrics) {
|
||||
@@ -201,14 +199,11 @@ async function sendToGraphite() {
|
||||
});
|
||||
|
||||
client.on('error', (error) => {
|
||||
debug(error);
|
||||
debug(`Error sending data to graphite: ${error.message}`);
|
||||
resolve();
|
||||
});
|
||||
|
||||
client.on('end', () => {
|
||||
debug('sent to graphite');
|
||||
resolve();
|
||||
});
|
||||
client.on('end', () => resolve());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user