mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
replaced STDOUT with logger.info
This commit is contained in:
parent
45ab4ce2fa
commit
f146bca5c7
1 changed files with 2 additions and 2 deletions
|
@ -174,9 +174,9 @@ class Contact < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy_orphans
|
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
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue