Class: LolDba::ErrorLogging

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_dba/index_finding/error_logging.rb

Class Method Summary collapse

Class Method Details

.log(model_class, reflection_options, exception) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/lol_dba/index_finding/error_logging.rb', line 3

def self.log(model_class, reflection_options, exception)
  puts 'some errors here...'
  puts 'please, create an issue with the following information here:'
  puts 'https://github.com/plentz/lol_dba/issues'
  puts '***************************'
  puts "class: #{model_class}"
  puts "association type: #{reflection_options.macro}"
  puts "association options: #{reflection_options.options}"
  puts "exception: #{exception.message}"
  exception.backtrace.each { |trace| puts trace }
end