Permalink
Browse files

skip_logging on binary data insert

  • Loading branch information...
lukebaker committed May 7, 2013
1 parent bc7675e commit f229a689fa8aedda3707a401e8fb91628500367c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/munge_and_notify_job.rb
@@ -179,7 +179,7 @@ def perform
znewcsv << zoutput.finish
zoutput.close
- export_id = Export.connection.insert("INSERT INTO `exports` (`name`, `data`, `compressed`) VALUES (#{Export.connection.quote(redis_key)}, #{Export.connection.quote(znewcsv)}, 1)")
+ export_id = Export.connection.insert("INSERT INTO `exports` (`name`, `data`, `compressed`) VALUES (#{Export.connection.quote(redis_key)}, #{Export.connection.quote(znewcsv)}, 1)", :skip_logging)
Delayed::Job.enqueue DestroyOldExportJob.new(export_id), 20, 3.days.from_now
url = "/export/#{redis_key}"
IdeaMailer.deliver_export_data_ready(email, url, photocracy)

0 comments on commit f229a68

Please sign in to comment.