Skip to content
tchandy edited this page Jul 3, 2011 · 2 revisions

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

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