Class: ExceptionLogger
- Inherits:
-
Object
- Object
- ExceptionLogger
- Defined in:
- app/services/exception_logger.rb
Instance Method Summary collapse
Instance Method Details
#log(code, message, instance_id) ⇒ Object
3 4 5 6 7 8 |
# File 'app/services/exception_logger.rb', line 3 def log(code, , instance_id) # Include notification logic if needed unless Spree::FosdickException.find_by(spree_fosdick_shipment_id: instance_id, error_code: code).present? Spree::FosdickException.create! build_fosdick_exception_attributes(code, , instance_id) end end |