Skip to content

Commit

Permalink
Don't emit deprecation warnings on every error.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 5, 2022
1 parent 6fbd0af commit 449868b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Error/ErrorTrap.php
Expand Up @@ -203,7 +203,7 @@ public function logger(): ErrorLoggerInterface
$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 */
Expand Down

0 comments on commit 449868b

Please sign in to comment.