diff options
author | UmbrellaCodr <umbrella@biohazard.cc> | 2022-02-02 22:21:58 -0800 |
---|---|---|
committer | UmbrellaCodr <umbrella@biohazard.cc> | 2022-02-03 17:52:37 -0800 |
commit | a0d7e2778977360fe05027d336cec5e1d0d64dd3 (patch) | |
tree | db33a6b7ad3e68a6fa6fe038a95abe673918ce8c /lib/private | |
parent | e167d7f44ce9adb43b021e83b8782d3413081e45 (diff) | |
download | nextcloud-server-a0d7e2778977360fe05027d336cec5e1d0d64dd3.tar.gz nextcloud-server-a0d7e2778977360fe05027d336cec5e1d0d64dd3.zip |
reduce 'Movie preview generation failed Output' log errors
for movies under 5 seconds
Signed-off-by: UmbrellaCodr <umbrella@biohazard.cc>
Update lib/private/Preview/Movie.php
Co-authored-by: Simon L. <szaimen@e.mail.de>
Diffstat (limited to 'lib/private')
-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; |