diff --git a/lib/Db/TimelineWrite.php b/lib/Db/TimelineWrite.php index 598049ffd..666de699c 100644 --- a/lib/Db/TimelineWrite.php +++ b/lib/Db/TimelineWrite.php @@ -87,12 +87,12 @@ public function processFile( // Check if EXIF is blank, which is probably wrong if (0 === \count($exif)) { - throw new \Exception('No EXIF data could be read: '.$file->getPath()); + throw new \Exception('No EXIF data could be read'); } // Check if MIMEType was not detected if (empty($exif['MIMEType'] ?? null)) { - throw new \Exception('No MIMEType in EXIF data: '.$file->getPath()); + throw new \Exception('No MIMEType in EXIF data'); } // Hand off if Live Photo video part diff --git a/lib/Listeners/PostWriteListener.php b/lib/Listeners/PostWriteListener.php index eb6302053..9b81e83b2 100644 --- a/lib/Listeners/PostWriteListener.php +++ b/lib/Listeners/PostWriteListener.php @@ -74,6 +74,7 @@ public function handle(Event $event): void } catch (\Exception $e) { $this->logger->error('Failed to process file EXIF data', [ 'app' => 'memories', + 'path' => $node->getPath(), 'message' => $e->getMessage(), ]); }