Skip to content

Commit

Permalink
New: Add logger for ThumbnailGenerator errors
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Jul 14, 2020
1 parent 73d963b commit 81dbaa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Service/ThumbnailGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 81dbaa5

Please sign in to comment.