diff --git a/src/QueueThrottleService.php b/src/QueueThrottleService.php
index 3c66ef1..28ebbdd 100644
--- a/src/QueueThrottleService.php
+++ b/src/QueueThrottleService.php
@@ -99,13 +99,13 @@ class QueueThrottleService implements QueueThrottleServiceInterface {
         // If the worker indicates there is a problem with the whole queue,
         // release the item.
         $queue->releaseItem($item);
-        watchdog_exception('queue_throttle', $e);
+        \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('queue_throttle'), $e), fn() => watchdog_exception('queue_throttle', $e));
         break;
       }
       catch (\Exception $e) {
         // In case of any other kind of exception, log it and leave the item
         // in the queue to be processed again later.
-        watchdog_exception('queue_throttle', $e);
+        \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('queue_throttle'), $e), fn() => watchdog_exception('queue_throttle', $e));
       }
     }
 
