Skip to content
Ayumi Yu edited this page Apr 3, 2014 · 5 revisions

Octopus has a default logger, that it's useful to see to what shard the query was sent. To enable it, create a new file called octopus.rb in the config/initializers folder with the following content:

ActiveRecord::Base.logger = Logger.new("#{Rails.root}/log/#{Rails.env}.log")
Clone this wiki locally