From 81dbaa5af30e77ece48f4127cc7d5386cd5227a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=BCnther?= Date: Tue, 14 Jul 2020 20:08:47 +0200 Subject: [PATCH] New: Add logger for ThumbnailGenerator errors --- Classes/Service/ThumbnailGenerator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/Service/ThumbnailGenerator.php b/Classes/Service/ThumbnailGenerator.php index 84ef22f..866c599 100644 --- a/Classes/Service/ThumbnailGenerator.php +++ b/Classes/Service/ThumbnailGenerator.php @@ -104,10 +104,12 @@ public function fetchThumbnailFromFilePreviewApi($previewIdentifier, Thumbnail $ $response->error->message, $response->error->code ); + $this->logger->error($message, [$response]); throw new FilePreviewException($message, 1594730717); } if ($response->status !== self::API_STATUS_SUCCESS || !isset($response->thumbnails[0])) { + $this->logger->error('Unable to process the thumbnail', [$response]); throw new Exception('Unable to process the thumbnail', 1594729983); }