Verified Commit 85df6364 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3310510 by igorbarato, Anchal_gupta: Harden error logging of OEmbed...

Issue #3310510 by igorbarato, Anchal_gupta: Harden error logging of OEmbed thumbnail fetching logic (YouTube errors contain special characters)

(cherry picked from commit c36f03ae)
parent cbdb8941
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -447,7 +447,9 @@ protected function getLocalThumbnailUri(Resource $resource) {
      }
    }
    catch (TransferException $e) {
      $this->logger->warning($e->getMessage());
      $this->logger->warning('Failed to download remote thumbnail file due to "%error".', [
        '%error' => $e->getMessage(),
      ]);
    }
    catch (FileException $e) {
      $this->logger->warning('Could not download remote thumbnail from {url}.', [