Class: Cassie::Statements::Logging::ExecuteSubscriber
- Defined in:
- lib/cassie/statements/logging/execute_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/cassie/statements/logging/execute_subscriber.rb', line 6 def call(*args) # don't log if instrumentation failed unless args.last[:exception] logger.debug(ExecuteEvent.new(*args).) end end |
#logger ⇒ Object
13 14 15 |
# File 'lib/cassie/statements/logging/execute_subscriber.rb', line 13 def logger Cassie::Statements.logger end |