metrics: disable debugs

This commit is contained in:
Girish Ramakrishnan
2025-07-09 19:08:42 +02:00
parent e851abb5a5
commit 1a471a7c20
+2 -7
View File
@@ -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());
});
}