tchandy/octopus — pull request #71 by kanevski (2012-01-21 01:17:07+00:00)
Title: Improved logging integration for Rails 3+

I added integration with Rails 3 ActiveRecord instrumentation, for what should be more reliable logging. Rather than setting up a logger, the logging is hooked into the ActiveRecord instrumentation and is more explicit in how the shard name is delivered.

This pretty much apes db-charmer's approach - which I think is pretty good.

Let me know if you'd like any changes made.