summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-02-04 15:40:51 +0100
committerGitHub <noreply@github.com>2022-02-04 15:40:51 +0100
commit88ded737ce61a7d05f871ab6c79281baa04b8cff (patch)
treed4739377a2b4729a3f250c5a822b5b9c2b6b096a /lib
parent50f51b1782ba0fb2c41d6ad232714298d68df2d8 (diff)
parenta0d7e2778977360fe05027d336cec5e1d0d64dd3 (diff)
downloadnextcloud-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.php6
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;