summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import_export/shared.rb')
-rw-r--r--lib/gitlab/import_export/shared.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/shared.rb b/lib/gitlab/import_export/shared.rb
index d03cbc880fd..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