Module: Janus::Logging::Subscriber
- Defined in:
- lib/janus-ar/logging/subscriber.rb
Constant Summary collapse
- IGNORE_PAYLOAD_NAMES =
%w(SCHEMA EXPLAIN).freeze
Instance Method Summary collapse
Instance Method Details
#sql(event) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/janus-ar/logging/subscriber.rb', line 8 def sql(event) name = event.payload[:name] unless IGNORE_PAYLOAD_NAMES.include?(name) name = [current_wrapper_name(event), name].compact.join(' ') event.payload[:name] = name end super(event) end |