Module: Postamt::LogSubscriber
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/postamt.rb
Instance Method Summary collapse
Instance Method Details
#debug(msg) ⇒ Object
108 109 110 111 |
# File 'lib/postamt.rb', line 108 def debug(msg) conn = @postamt_connection_name ? color(" [#{@postamt_connection_name}]", ActiveSupport::LogSubscriber::BLUE, true) : '' super(conn + msg) end |
#sql(event) ⇒ Object
103 104 105 106 |
# File 'lib/postamt.rb', line 103 def sql(event) @postamt_connection_name = ObjectSpace._id2ref(event.payload[:connection_id]).instance_variable_get(:@config)[:username] super end |