fix(logger): improve logging and make sure no data is lost

This commit is contained in:
Matteo Pagliazzi
2020-03-24 20:29:31 +01:00
parent 3458d89c1d
commit 2cd0ed5973
5 changed files with 130 additions and 46 deletions

View File

@@ -19,7 +19,7 @@ function sendWebhook (webhook, body, user) {
retry: 3, // retry the request up to 3 times
}).catch(webhookErr => {
// Log the error
logger.error(webhookErr);
logger.error(webhookErr, 'Error while sending a webhook request.');
let _failuresReset = false;