Log exceptions in the indexItems and deleteItems methods of the SearchApiElasticsearchBackend class.

Created on 25 July 2022, over 2 years ago
Updated 21 June 2024, 6 months ago

Problem/Motivation

When the index is configured to "Index items immediately" the indexing happens on the "KernelEvents::TERMINATE" event. The page output is already sent to the user and \Drupal::messenger()->addError($e->getMessage()); takes no effect. So this can lead to difficulties in detecting and identifying errors

Proposed resolution

Add logging.

✨ Feature request
Status

Postponed: needs info

Version

8.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine dench0

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024