aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlouise <louise>2009-05-21 08:13:01 +0000
committerlouise <louise>2009-05-21 08:13:01 +0000
commit0dec1907e017a1eddcd330730c472f51d75d9f33 (patch)
tree1c3a4a70e925a2303a19f01b342162895aad17dc
parentb45669edf781a7cd59609a25d4f9b33e664af26e (diff)
Detailed debug output off, cron back to team
-rw-r--r--app/models/track_mailer.rb16
-rw-r--r--config/crontab.ugly5
2 files changed, 10 insertions, 11 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb
index 0b14010b0..b26680379 100644
--- a/app/models/track_mailer.rb
+++ b/app/models/track_mailer.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: track_mailer.rb,v 1.19 2009-05-05 08:52:41 louise Exp $
+# $Id: track_mailer.rb,v 1.20 2009-05-21 08:13:01 louise Exp $
class TrackMailer < ApplicationMailer
def event_digest(user, email_about_things)
@@ -69,13 +69,13 @@ class TrackMailer < ApplicationMailer
# If we have anything to send, then send everything for the user in one mail
if email_about_things.size > 0
# Debugging
- STDERR.puts "sending email alert for user " + user.url_name
- for track_thing, alert_results, xapian_object in email_about_things
- STDERR.puts " tracking " + track_thing.track_query
- for result in alert_results.reverse
- STDERR.puts " result " + result[:model].class.to_s + " id " + result[:model].id.to_s
- end
- end
+ # STDERR.puts "sending email alert for user " + user.url_name
+ # for track_thing, alert_results, xapian_object in email_about_things
+ # STDERR.puts " tracking " + track_thing.track_query
+ # for result in alert_results.reverse
+ # STDERR.puts " result " + result[:model].class.to_s + " id " + result[:model].id.to_s
+ # end
+ # end
# Send the email
TrackMailer.deliver_event_digest(user, email_about_things)
diff --git a/config/crontab.ugly b/config/crontab.ugly
index 55c8827fe..c08a827ad 100644
--- a/config/crontab.ugly
+++ b/config/crontab.ugly
@@ -4,11 +4,10 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org. WWW: http://www.mysociety.org/
#
-# $Id: crontab.ugly,v 1.26 2009-05-05 08:52:41 louise Exp $
+# $Id: crontab.ugly,v 1.27 2009-05-21 08:13:01 louise Exp $
PATH=/usr/local/bin:/usr/bin:/bin
-#MAILTO=team@whatdotheyknow.com
-MAILTO=louise@mysociety.org
+MAILTO=team@whatdotheyknow.com
# Every 5 minutes
*/5 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/update-xapian-index.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/update-xapian-index || echo "stalled?"