From f146bca5c74c59b1d332fcf53db800eb6a28f37e Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Fri, 27 Mar 2015 15:01:51 +0200 Subject: [PATCH] replaced STDOUT with logger.info --- app/models/contact.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/contact.rb b/app/models/contact.rb index 0035965b7..48b4f35ac 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -174,9 +174,9 @@ class Contact < ActiveRecord::Base end def destroy_orphans - STDOUT << "#{Time.now.utc} - Destroying orphaned contacts\n" + logger.info "#{Time.now.utc} - Destroying orphaned contacts\n" count = find_orphans.destroy_all.count - STDOUT << "#{Time.now.utc} - Successfully destroyed #{count} orphaned contacts\n" + logger.info "#{Time.now.utc} - Successfully destroyed #{count} orphaned contacts\n" end end end