diff --git a/server/opensearch/os-handler.js b/server/opensearch/os-handler.js index 988ab1c84..15eddea83 100644 --- a/server/opensearch/os-handler.js +++ b/server/opensearch/os-handler.js @@ -160,6 +160,13 @@ async function OpenSearchUpdateHandler(req, res) { res.status(200).json(response.body); } } catch (error) { + logger.log("os-handler-error", "ERROR", null, null, { + id: req.body.event.data.new.id, + index: req.body.table.name, + message: error.message, + stack: error.stack + // body: document + }); res.status(400).json(JSON.stringify(error)); } }