Module: Ciql::LogListener
- Defined in:
- lib/ciql/rails.rb
Instance Method Summary collapse
Instance Method Details
#log(message) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/ciql/rails.rb', line 9 def log() ActiveSupport::Notifications.instrument('sql.data_mapper', :name => 'CQL', :sql => '%{query} [%{consistency}]' % , :duration => [:duration] ) rescue Exception => e Ciql.logger.error "[ciql] #{e.class.name}: #{e.}: #{.inspect}}" end |