Verified Commit d02fe902 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 f550c187
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -442,7 +442,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}.', [