mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(logger): improve logging and make sure no data is lost
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user