diff options
author | Simon L <szaimen@e.mail.de> | 2022-02-04 15:40:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 15:40:51 +0100 |
commit | 88ded737ce61a7d05f871ab6c79281baa04b8cff (patch) | |
tree | d4739377a2b4729a3f250c5a822b5b9c2b6b096a /lib | |
parent | 50f51b1782ba0fb2c41d6ad232714298d68df2d8 (diff) | |
parent | a0d7e2778977360fe05027d336cec5e1d0d64dd3 (diff) | |
download | nextcloud-server-88ded737ce61a7d05f871ab6c79281baa04b8cff.tar.gz nextcloud-server-88ded737ce61a7d05f871ab6c79281baa04b8cff.zip |
Merge pull request #30984 from UmbrellaCodr/ffmpeg-preview
reduce 'Movie preview generation failed Output' log errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Preview/Movie.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php index eab81e1ed48..a6e424caa2a 100644 --- a/lib/private/Preview/Movie.php +++ b/lib/private/Preview/Movie.php @@ -159,8 +159,10 @@ class Movie extends ProviderV2 { } } - $logger = \OC::$server->get(LoggerInterface::class); - $logger->error('Movie preview generation failed Output: {output}', ['app' => 'core', 'output' => $output]); + if ($second === 0) { + $logger = \OC::$server->get(LoggerInterface::class); + $logger->error('Movie preview generation failed Output: {output}', ['app' => 'core', 'output' => $output]); + } unlink($tmpPath); return null; |