module Postamt::LogSubscriber

Public Instance Methods

debug(msg) click to toggle source
Calls superclass method
# 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) click to toggle source
Calls superclass method
# 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