Commit 63fde321

mo khan <mo@mokhan.ca>
2014-09-23 02:15:22
log error in image manipulation.
1 parent 3290c0a
Changed files (1)
app
services
infrastructure
app/services/infrastructure/image.rb
@@ -77,6 +77,8 @@ class Image
     image = yield(image)
     image.write(path)
     image.run_command("identify", path)
+  rescue StandardError => error
+    Rails.logger.error("#{error.message} #{error.backtrace.join(', ')}")
   ensure
     image.try(:destroy!)
   end