diff options
Diffstat (limited to 'lib/tasks/ecs_garbage_collect_anonymous_participants.rake')
-rw-r--r-- | lib/tasks/ecs_garbage_collect_anonymous_participants.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/ecs_garbage_collect_anonymous_participants.rake b/lib/tasks/ecs_garbage_collect_anonymous_participants.rake index f0c4836..50d894a 100644 --- a/lib/tasks/ecs_garbage_collect_anonymous_participants.rake +++ b/lib/tasks/ecs_garbage_collect_anonymous_participants.rake @@ -3,7 +3,7 @@ namespace :ecs do task :gc_anonymous_participants => :environment do num= Participant.find(:all, :conditions => ["(anonymous = ?) AND (ttl < ?)", true, DateTime.now.utc]).length Participant.destroy_all(["(anonymous = ?) AND (ttl < ?)", true, DateTime.now.utc]) - txt= "Number of deleted messages: #{num}" + txt= "gc_anonymous_participants: Number of deleted outtimed anonymous participants: #{num}" puts txt RAILS_DEFAULT_LOGGER.info txt end |