Merge pull request #10036 from nextcloud/feature/9221/show-path-in-log

Log path of file that failed to be parsed
This commit is contained in:
Roeland Jago Douma 2018-06-28 11:36:24 +02:00 committed by GitHub
commit 388ea2234f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ abstract class Bitmap extends Provider {
$bp = $this->getResizedPreview($tmpPath, $maxX, $maxY);
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e, [
'message' => 'Imagick says:',
'message' => 'File: ' . $fileview->getAbsolutePath($path) . ' Imagick says:',
'level' => ILogger::ERROR,
'app' => 'core',
]);