webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.22k stars 589 forks source link

Add Model ID and Used Index Name When Logging Ignored ES Response Errors #4186

Closed adrians5j closed 1 week ago

adrians5j commented 1 week ago

Changes

With this PR, we're adding model ID and ES index name to the log that is produced when an ES response error is ignored.

Prior to this PR, these weren't here, which would make it really hard to figure out to which model ID / ES index name was the error related.

Additional Changes

Instead of handling everything in a single function, I split the code into two functions and extracted them into separate files.

How Has This Been Tested?

Manually / relying on existing Jest tests.

Documentation

Changelog.