Don't log when metrics where sent successfully

This commit is contained in:
Daniel García Aubert 2020-05-01 13:25:03 +02:00
parent 05e77b2aed
commit 4dfc898587

View File

@ -19,7 +19,6 @@ module.exports = function metrics ({ enabled, tags, metricsBackend, logger }) {
const { event, attributes } = getEventData(req, res, tags);
metricsBackend.send(event, attributes)
.then(() => logger.debug(`Event "${event}" published succesfully`))
.catch((error) => logger.error(`Failed to publish event "${event}": ${error.message}`));
});