]> cat aescling's git repositories - mastodon.git/commitdiff
Fix unsupported video error message handling (#16581)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Sun, 8 Aug 2021 13:28:57 +0000 (22:28 +0900)
committerGitHub <noreply@github.com>
Sun, 8 Aug 2021 13:28:57 +0000 (15:28 +0200)
lib/paperclip/transcoder.rb

index e997040867d36bdfd823502e8f3cf602d460c979..ec13050382776a96ea1bcc367926a76be56df01f 100644 (file)
@@ -19,7 +19,7 @@ module Paperclip
       metadata = VideoMetadataExtractor.new(@file.path)
 
       unless metadata.valid?
-        log("Unsupported file #{@file.path}")
+        Paperclip.log("Unsupported file #{@file.path}")
         return File.open(@file.path)
       end