summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;