Skip to content

Commit

Permalink
Warning on thumbnail migration when file too large
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jun 5, 2019
1 parent c4cda96 commit 83927f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Helper/ImageThumbnailHelper.php
Expand Up @@ -94,6 +94,10 @@ public function run()
foreach ($files as $file) {
// Skip if file is too large
if ($maxSize > 0 && $file->getAbsoluteSize() > $maxSize) {
$this->logger->warning(sprintf(
'File too large for thumbnail for generating thumbnail: %s',
$file->Filename
));
continue;
}

Expand Down

0 comments on commit 83927f7

Please sign in to comment.