Is your feature request related to a problem? Please describe.
Deprecation notice while running test : watchdog_exception() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Utility\Error::logException() instead. See https://www.drupal.org/node/2932520
As these changes are introduced in Drupal 10.1 , it will fail in Drupal 9. PR will be created after the minimum Drupal version is bumped to 10.1. Postponing this ticket for now.
Is your feature request related to a problem? Please describe. Deprecation notice while running test : watchdog_exception() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Utility\Error::logException() instead. See https://www.drupal.org/node/2932520