Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update RAILS_DEFAULT_LOGGER to Rails.logger.

  • Loading branch information...
commit 1acb96cdf92782b6f97adb5ee7d9a24fd00dd010 1 parent 49c6d14
@midas authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/genesis/seeder.rb
View
8 lib/genesis/seeder.rb
@@ -149,7 +149,7 @@ def self.log_entry_start( class_name )
entry = "== #{class_name}: seeding (#{@method.to_s}) "
entry << "="*(@separator_size-entry.length) << "\n"
puts entry
- RAILS_DEFAULT_LOGGER.info entry
+ Rails.logger.info entry
end
def self.log_entry_finish( class_name, total_time )
@@ -157,13 +157,13 @@ def self.log_entry_finish( class_name, total_time )
num_to_finish = @separator_size-entry.length
entry << "="*(num_to_finish) << "\n\n" if num_to_finish > 0
puts entry
- RAILS_DEFAULT_LOGGER.info entry
+ Rails.logger.info entry
end
def self.log_seeding_finish
entry = "*** Seeding total time: #{@time_end_seeding - @time_start_seeding}s"
puts entry
- RAILS_DEFAULT_LOGGER.info entry
+ Rails.logger.info entry
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.