diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2023-01-30 15:41:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 15:41:47 +0100 |
commit | 3bfc5a4d959faebd8a76470d2832390598c7981e (patch) | |
tree | 4a5b85b468897d7a1caad4453fe2db542c225433 /lib | |
parent | 7251ed1cc35bc8fc96f99afa3baf410b8db625c5 (diff) | |
parent | a704619ea493f528fb857a57d34ce0990546635e (diff) | |
download | nextcloud-server-3bfc5a4d959faebd8a76470d2832390598c7981e.tar.gz nextcloud-server-3bfc5a4d959faebd8a76470d2832390598c7981e.zip |
Merge pull request #36420 from nextcloud/enh/34958/fix-exif-log
fix the exif_read_data issue
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Metadata/Provider/ExifProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Metadata/Provider/ExifProvider.php b/lib/private/Metadata/Provider/ExifProvider.php index 02024bd3877..ae2c57ba7e5 100644 --- a/lib/private/Metadata/Provider/ExifProvider.php +++ b/lib/private/Metadata/Provider/ExifProvider.php @@ -56,10 +56,10 @@ class ExifProvider implements IMetadataProvider { // But I don't understand why 1 as a special meaning. // Revert right after reading the exif data. $oldBufferSize = stream_set_chunk_size($fileDescriptor, 1); - $data = exif_read_data($fileDescriptor, 'ANY_TAG', true); + $data = @exif_read_data($fileDescriptor, 'ANY_TAG', true); stream_set_chunk_size($fileDescriptor, $oldBufferSize); } catch (\Exception $ex) { - $this->logger->warning("Couldn't extract metadata for ".$file->getId(), ['exception' => $ex]); + $this->logger->info("Couldn't extract metadata for ".$file->getId(), ['exception' => $ex]); } $size = new FileMetadata(); |