Updated batch sending to log errors separately

fixes https://github.com/TryGhost/Team/issues/2347

Makes sure we can use the error code
This commit is contained in:
Simon Backx 2022-12-01 16:35:54 +01:00
parent dee00e36a0
commit 0182965aa3

View File

@ -309,7 +309,8 @@ class BatchSendingService {
}, {patch: true, require: false});
succeeded = true;
} catch (err) {
logging.error(`Error sending email batch ${batch.id}`, err);
logging.error(`Error sending email batch ${batch.id}`);
logging.error(err);
await batch.save({
status: 'failed',