Skip to content

Commit

Permalink
UHF-10891: Debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Oct 25, 2024
1 parent 8227274 commit 1af52b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Drush/Commands/TransliterateFilesCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ private function processFieldLinks(ContentEntityInterface $entity, string $field
if ($this->remoteFileExists($href)) {
continue;
}
$this->io()->note(sprintf('Found a broken link [%s]: "%s"', $entity->toUrl()->toString(), $href));
$basename = basename($href);

// Test sanitized filename and urldecoded+sanitized filename.
Expand All @@ -165,7 +166,7 @@ private function processFieldLinks(ContentEntityInterface $entity, string $field
}

if (!$newUrl) {
$this->io()->warning(sprintf('Failed to process the link "%s" for "%s"', $href, $entity->toUrl()->toString()));
$this->io()->warning(sprintf('Failed to process [%s]: "%s"', $entity->toUrl()->toString(), $href));

continue;
}
Expand Down

0 comments on commit 1af52b1

Please sign in to comment.