Skip to content

A platform for community discussion. Free, open, simple.

DEV: Log any errors for the user csv export (#25422)

Blake Ericksone409fabf8d02
diff --git a/app/jobs/regular/export_csv_file.rb b/app/jobs/regular/export_csv_file.rb
index e37e97e2002..14991742f2c 100644
--- a/app/jobs/regular/export_csv_file.rb
+++ b/app/jobs/regular/export_csv_file.rb
@@ -103,7 +103,9 @@ module Jobs
if upload.persisted?
user_export.update_columns(upload_id: upload.id)
else
- Rails.logger.warn("Failed to upload the file #{zip_filename}")
+ Rails.logger.warn(
+ "Failed to upload the file #{zip_filename}: #{upload.errors.full_messages}",
+ )
end
end