From 0182965aa3ebc77b78bcefa175b09eadd925ec1f Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 1 Dec 2022 16:35:54 +0100 Subject: [PATCH] Updated batch sending to log errors separately fixes https://github.com/TryGhost/Team/issues/2347 Makes sure we can use the error code --- ghost/email-service/lib/batch-sending-service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/email-service/lib/batch-sending-service.js b/ghost/email-service/lib/batch-sending-service.js index f032093a25..41c81beabf 100644 --- a/ghost/email-service/lib/batch-sending-service.js +++ b/ghost/email-service/lib/batch-sending-service.js @@ -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',