module SQLOrigin::LogSubscriber
@private
Public Instance Methods
sql_with_backtrace(event)
click to toggle source
# File lib/sql_origin/hooks.rb, line 27 def sql_with_backtrace(event) return unless sql_without_backtrace(event) return unless event.payload[:backtrace] if event.payload[:backtrace].any? event.payload[:backtrace].each do |line| debug " #{color line, "\e[90m", false}" end end end