diff --git a/lib/wherebot.rb b/lib/wherebot.rb index 0074d83..5d062f4 100644 --- a/lib/wherebot.rb +++ b/lib/wherebot.rb @@ -51,7 +51,9 @@ def import_emails puts "importing #{total} new messages" new.each do |id| - Wherebot::Message.new(@imap, id, @destructive).create + ActiveRecord::Base.logger.silence do + Wherebot::Message.new(@imap, id, @destructive).create + end done += 1 percent = done * 100.0 / total puts "#{percent.floor}%" if percent > 1 && (percent % 10) == 0