switch a puts to a log

Andrew Cantino 11 years ago
parent
commit
582345ebd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agents/digest_email_agent.rb

+ 1 - 1
app/models/agents/digest_email_agent.rb

@@ -38,7 +38,7 @@ module Agents
38 38
     def check
39 39
       if self.memory[:queue] && self.memory[:queue].length > 0
40 40
         lines = self.memory[:queue].map {|item| present(item) }
41
-        puts "Sending mail to #{user.email}..." unless Rails.env.test?
41
+        log "Sending digest mail to #{user.email}"
42 42
         SystemMailer.delay.send_message(:to => user.email, :subject => options[:subject], :headline => options[:headline], :lines => lines)
43 43
         self.memory[:queue] = []
44 44
       end