module Tako::ActiveRecordExt::LogSubscriber
Constants
- CLEAR
- GREEN
Public Instance Methods
debug(msg)
click to toggle source
Calls superclass method
# File lib/tako/active_record_ext/log_subscriber.rb, line 7 def debug(msg) current_shard = ::Tako::ProxyStack.top.try(:shard_name) if current_shard super("#{GREEN}[Shard: #{current_shard}]#{CLEAR}" + msg) else super end end