Don't log when metrics where sent successfully
This commit is contained in:
parent
05e77b2aed
commit
4dfc898587
@ -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}`));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user