From 686f56828dfa59df07e714cdcf8e99b34690feb0 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 12 Jan 2018 12:54:47 +0100 Subject: [PATCH] Improved error logging in case of failing ImportJob. --- app/models/import_job.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/import_job.rb b/app/models/import_job.rb index 9192b98bd..34b24ace7 100644 --- a/app/models/import_job.rb +++ b/app/models/import_job.rb @@ -21,6 +21,7 @@ class ImportJob < ApplicationModel instance = name.constantize.new(self) instance.start rescue => e + Rails.logger.error "ImportJob '#{name}' failed: #{e.message}" Rails.logger.error e # rubocop:disable Style/RedundantSelf