class MultiTenant::QueryMonitor

Public Instance Methods

finish(name, id, payload) click to toggle source
# File lib/activerecord-multi-tenant/query_monitor.rb, line 10
def finish(name, id, payload)
  return unless MultiTenant.query_monitor_enabled?
  return unless payload[:exception].present? && MultiTenant.current_tenant_id.nil?
  Rails.logger.info 'WARNING: Tenant not present - make sure to add MultiTenant.with(tenant) { ... }'
end
start(name, id, payload) click to toggle source
# File lib/activerecord-multi-tenant/query_monitor.rb, line 9
def start(name, id, payload); end