Problem/Motivation

Found Deprecation

 ------ ----------------------------------------------------------- 
  Line  /src/Plugin/search_api/processor/AddHierarchy.php                                           
 ------ ----------------------------------------------------------- 
  122    Call to deprecated function watchdog_exception():          
         in drupal:10.1.0 and is removed from drupal:11.0.0. Use    
           Use \Drupal\Core\Utility\Error::logException() instead.  
  294    Call to deprecated function watchdog_exception():          
         in drupal:10.1.0 and is removed from drupal:11.0.0. Use    
           Use \Drupal\Core\Utility\Error::logException() instead.  

Steps to reproduce

Implement the purposed solution https://www.drupal.org/node/2932520

Proposed resolution

Remaining tasks

Issue fork search_api-3377099

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

keshav.k created an issue. See original summary.

keshavv’s picture

Issue summary: View changes
keshavv’s picture

Status: Active » Needs review

I have created the MR. Please review.
Thank you.

drunken monkey’s picture

Status: Needs review » Postponed
Issue tags: +Drupal 10.1 dependency

Thanks for opening this issue!
However, it seems we need to wait until we depend on Drupal 10.1 to be able to fix this.
Furthermore, there are lots of other places in our code that use that function:

$ git grep -l watchdog_exception
search_api.module
search_api.views.inc
src/IndexBatchHelper.php
src/LoggerTrait.php
src/Plugin/search_api/processor/AddHierarchy.php
src/Task/IndexTaskManager.php
src/Utility/PostRequestIndexing.php
drunken monkey’s picture

Status: Postponed » Needs review
StatusFileSize
new9.9 KB
new8.88 KB

Since we now increased the Core version dependency in #3394192: Increase Drupal core version requirement to 10.1, we can finally go ahead with this.
The attached patch should fix this throughout the module. (Testing MRs unfortunately still doesn’t work for this project.)

  • drunken monkey committed 82394da0 on 8.x-1.x
    Issue #3377099 by drunken monkey, keshavv: Fixed calls to deprecated...
drunken monkey’s picture

Status: Needs review » Fixed

Merged. Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.