Class: ActiveRecord::LogSubscriber
- Inherits:
-
Object
- Object
- ActiveRecord::LogSubscriber
- Defined in:
- lib/standby/active_record/log_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#debug(msg) ⇒ Object
6 7 8 9 |
# File 'lib/standby/active_record/log_subscriber.rb', line 6 def debug(msg) db = Standby.disabled ? "" : color("[#{Thread.current[:_standby] || "primary"}]", ActiveSupport::LogSubscriber::GREEN, true) debug_without_standby(db + msg) end |
#debug_without_standby ⇒ Object
4 |
# File 'lib/standby/active_record/log_subscriber.rb', line 4 alias_method :debug_without_standby, :debug |