Method: Lore::Exceptions::Validation_Failure#log

Defined in:
lib/lore/exceptions/validation_failure.rb

#logObject



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/lore/exceptions/validation_failure.rb', line 37

def log()
  # {{{ 
    Lore.logger.error { "====== VALIDATION FAILURE ===========" }
	Lore.logger.error { "Invalid field values for klass #{@invalid_klass}: " }
	Lore.logger.error { 'Invalid field values are: ' }
    @invalid_fields.each_pair { |table, ip|
      Lore.logger.error { " |- Table: #{table}: #{ip.inspect}" }
    }
	Lore.logger.error { 'Required attributes are: ' } 
    @invalid_klass.__attributes__.required.each_pair { |table, ip|
      Lore.logger.error { " |- Table: #{table}: #{ip.inspect}" } 
    }
end