diff -u b/linkchecker.module b/linkchecker.module --- b/linkchecker.module +++ b/linkchecker.module @@ -10,7 +10,6 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\Logger\RfcLogLevel; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\field\FieldConfigInterface; use Drupal\filter\Entity\FilterFormat; diff -u b/src/LinkCheckerService.php b/src/LinkCheckerService.php --- b/src/LinkCheckerService.php +++ b/src/LinkCheckerService.php @@ -7,7 +7,6 @@ use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Link; use Drupal\Core\Logger\LoggerChannelInterface; -use Drupal\Core\Logger\RfcLogLevel; use Drupal\Core\Queue\QueueFactory; use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Core\Url; @@ -243,7 +242,7 @@ $link->save(); $this->logger->notice('Link %link has changed and needs to be updated.', [ '%link' => $link->getUrl(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); break; @@ -256,7 +255,7 @@ $this->logger->notice('Broken link %link has been found.', [ '%link' => $link->getUrl(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); break; @@ -272,7 +271,7 @@ $this->logger->notice('Method HEAD is not allowed for link %link. Method has been changed to GET.', [ '%link' => $link->getUrl(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); break; @@ -288,7 +287,7 @@ $this->logger->notice('Broken link %link has been found.', [ '%link' => $link->getUrl(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); } else { @@ -301,7 +300,7 @@ $this->logger->notice('Internal server error for link %link. Method has been changed to GET.', [ '%link' => $link->getUrl(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); } break; @@ -324,7 +323,7 @@ $this->logger->error('Unhandled link error %link has been found.', [ '%link' => $link->getUrl(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); } } @@ -358,7 +357,7 @@ $this->logger->error('Unhandled link error %link has been found: : %message.', [ '%link' => $link->getUrl(), '%message' => $e->getMessage(), - 'link' => $this->getReportLink() + 'link' => $this->getReportLink(), ]); $this->updateSameLinks($link);