aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
m---------3rdparty0
-rw-r--r--lib/private/Preview/MP3.php8
2 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty b/3rdparty
-Subproject 45d8fc9e09fbb4d3c4de5819afd9a6f72ce00f5
+Subproject 72598ddd873afd5643d62ddfc4d962d04b2b451
diff --git a/lib/private/Preview/MP3.php b/lib/private/Preview/MP3.php
index 59b791950b8..105b182b415 100644
--- a/lib/private/Preview/MP3.php
+++ b/lib/private/Preview/MP3.php
@@ -9,8 +9,8 @@ namespace OC\Preview;
use OCP\Files\File;
use OCP\IImage;
-use Psr\Log\LoggerInterface;
use wapmorgan\Mp3Info\Mp3Info;
+use function OCP\Log\logger;
class MP3 extends ProviderV2 {
/**
@@ -31,9 +31,9 @@ class MP3 extends ProviderV2 {
/** @var string|null|false $picture */
$picture = $audio->getCover();
} catch (\Throwable $e) {
- \OC::$server->get(LoggerInterface::class)->info($e->getMessage(), [
- 'exception' => $e,
- 'app' => 'core',
+ logger('core')->info('Error while getting cover from mp3 file: ' . $e->getMessage(), [
+ 'fileId' => $file->getId(),
+ 'filePath' => $file->getPath(),
]);
return null;
} finally {