Skip to content

Commit

Permalink
Added log message when seed gets non-200 status.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Nov 4, 2023
1 parent 539ca83 commit 0a4467c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ public static function markupFromRoute($route, array $headers = []) {
default:
$messenger = \Drupal::messenger();
$messenger->addMessage("Non-200 response for {$route}: " . $response->getStatusCode(), $messenger::TYPE_WARNING);
\Drupal::logger('quant_seed')->notice("Non-200 response for {$route}: " . $response->getStatusCode());
return FALSE;
}

Expand Down

0 comments on commit 0a4467c

Please sign in to comment.