Improved error logging in case of failing ImportJob.

This commit is contained in:
Thorsten Eckel 2018-01-12 12:54:47 +01:00
parent 21421f0695
commit 686f56828d

View file

@ -21,6 +21,7 @@ class ImportJob < ApplicationModel
instance = name.constantize.new(self) instance = name.constantize.new(self)
instance.start instance.start
rescue => e rescue => e
Rails.logger.error "ImportJob '#{name}' failed: #{e.message}"
Rails.logger.error e Rails.logger.error e
# rubocop:disable Style/RedundantSelf # rubocop:disable Style/RedundantSelf