diff options
author | James Lopez <james@jameslopez.es> | 2018-01-26 16:48:47 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-01-26 17:26:27 +0300 |
commit | 41a14498c7d6fc1c422c9507393e889f96d964dc (patch) | |
tree | 217615cbc4e3cc14d0f585ce7f7c317be36dc4a5 /lib/gitlab/import_export/shared.rb | |
parent | 4131b6e9e32acc7317704018801c96342ea8b578 (diff) |
update code based on feedback
Diffstat (limited to 'lib/gitlab/import_export/shared.rb')
-rw-r--r-- | lib/gitlab/import_export/shared.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/shared.rb b/lib/gitlab/import_export/shared.rb index 71aec88a033..b34cafc6876 100644 --- a/lib/gitlab/import_export/shared.rb +++ b/lib/gitlab/import_export/shared.rb @@ -19,8 +19,13 @@ module Gitlab def error(error) error_out(error.message, caller[0].dup) @errors << error.message + # Debug: - Rails.logger.error(error.backtrace&.join("\n")) + if error.backtrace + Rails.logger.error("Import/Export backtrace: #{error.backtrace.join("\n")}") + else + Rails.logger.error("No backtrace found") + end end private |