Browse Source

Don't emit deprecation warnings on every error.

Mark Story 3 years ago
parent
commit
449868bb87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Error/ErrorTrap.php

+ 1 - 1
src/Error/ErrorTrap.php

@@ -203,7 +203,7 @@ class ErrorTrap
         $oldConfig = $this->getConfig('errorLogger');
         if ($oldConfig !== null) {
             deprecationWarning('The `errorLogger` configuration key is deprecated. Use `logger` instead.');
-            $this->setConfig('logger', $oldConfig);
+            $this->setConfig(['logger' => $oldConfig, 'errorLogger' => null]);
         }
 
         /** @var class-string<\Cake\Error\ErrorLoggerInterface> $class */