diff --git a/src/Plugin/Filter/EntityEmbedFilter.php b/src/Plugin/Filter/EntityEmbedFilter.php
index 290958b..5dc21f3 100644
--- a/src/Plugin/Filter/EntityEmbedFilter.php
+++ b/src/Plugin/Filter/EntityEmbedFilter.php
@@ -175,7 +175,7 @@ class EntityEmbedFilter extends FilterBase implements ContainerFactoryPluginInte
           }
         }
         catch (EntityNotFoundException $e) {
-          watchdog_exception('entity_embed', $e);
+          \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('entity_embed'), $e), fn() => watchdog_exception('entity_embed', $e));
         }
 
         if ($entity instanceof EntityInterface) {
diff --git a/src/Twig/EntityEmbedTwigExtension.php b/src/Twig/EntityEmbedTwigExtension.php
index b3bf666..d4f216d 100644
--- a/src/Twig/EntityEmbedTwigExtension.php
+++ b/src/Twig/EntityEmbedTwigExtension.php
@@ -62,7 +62,7 @@ class EntityEmbedTwigExtension extends AbstractExtension {
    */
   public function getFunctions() {
     return [
-      new TwigFunction('entity_embed', [$this, 'getRenderArray']),
+      new TwigFunction('entity_embed', $this->getRenderArray(...)),
     ];
   }
 
